Add disk-cache and worm to user-agent (#5729)

This commit is contained in:
poornas
2018-03-28 16:26:27 -07:00
committed by Dee Koder
parent a3e806ed61
commit 5006e28367

View File

@@ -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")
}