From 5006e283679a6f4227bb0bc973607b2f52c3b404 Mon Sep 17 00:00:00 2001 From: poornas Date: Wed, 28 Mar 2018 16:26:27 -0700 Subject: [PATCH] Add disk-cache and worm to user-agent (#5729) --- cmd/update-main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/update-main.go b/cmd/update-main.go index b40f3fea0..665bef195 100644 --- a/cmd/update-main.go +++ b/cmd/update-main.go @@ -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") }