mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Add disk-cache and worm to user-agent (#5729)
This commit is contained in:
@@ -244,6 +244,12 @@ func getUserAgent(mode string) string {
|
||||
if mode != "" {
|
||||
uaAppend("; ", mode)
|
||||
}
|
||||
if globalIsDiskCacheEnabled {
|
||||
uaAppend("; ", "feature-cache")
|
||||
}
|
||||
if globalWORMEnabled {
|
||||
uaAppend("; ", "feature-worm")
|
||||
}
|
||||
if IsDCOS() {
|
||||
uaAppend("; ", "dcos")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user