Skip to content

Commit

Permalink
Fixed incorrect representation in code comments. (openyurtio#296)
Browse files Browse the repository at this point in the history
Co-authored-by: felix0080 <felix0080@163.com>
  • Loading branch information
felix0080 and felix0080 authored May 10, 2021
1 parent 5dcc276 commit 543825c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/yurthub/proxy/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 543825c

Please sign in to comment.