diff --git a/docs/registry.go b/docs/registry.go index 26cefbbd..920f9459 100644 --- a/docs/registry.go +++ b/docs/registry.go @@ -132,7 +132,6 @@ func (r *Registry) setUserAgent(req *http.Request, extra ...VersionChecker) { } header, _ := json.Marshal(userAgent) - userAgent = nil req.Header.Set("User-Agent", string(header)) return }