Fix golint errors.
Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 9b47b7b1519c5f2138e2933fb1fc459eb00895c0 Component: engine
This commit is contained in:
@@ -53,6 +53,7 @@ func (v VersionMiddleware) WrapHandler(handler func(ctx context.Context, w http.
|
||||
w.Header().Set("Server", header)
|
||||
w.Header().Set("API-Version", v.defaultVersion)
|
||||
w.Header().Set("OSType", runtime.GOOS)
|
||||
// nolint: golint
|
||||
ctx = context.WithValue(ctx, "api-version", apiVersion)
|
||||
return handler(ctx, w, r, vars)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user