From 543825ce7f37167112a0b288f0d7ed79db255b83 Mon Sep 17 00:00:00 2001 From: Fanxing <642664360@qq.com> Date: Tue, 11 May 2021 01:29:59 +0800 Subject: [PATCH] Fixed incorrect representation in code comments. (#296) Co-authored-by: felix0080 --- pkg/yurthub/proxy/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/yurthub/proxy/util/util.go b/pkg/yurthub/proxy/util/util.go index 9a783da7c39..ecadf2c8b5d 100644 --- a/pkg/yurthub/proxy/util/util.go +++ b/pkg/yurthub/proxy/util/util.go @@ -47,7 +47,7 @@ var needModifyTimeoutVerb = map[string]bool{ } // WithRequestContentType add req-content-type in request context. -// if no Accept header is set, application/vnd.kubernetes.protobuf will be used +// if no Accept header is set, the request will be reject with a message. func WithRequestContentType(handler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { ctx := req.Context()