MSP-8976 Up deps
This commit is contained in:
1 parent
ebc3c1dbc5
commit
0d9921bbce
603 files changed
+47715
-13202
No files matched your search
+4
-1
@@ -210,7 +210,10 @@ func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marsha
|
||||
}
|
||||
|
||||
func requestAcceptsTrailers(req *http.Request) bool {
|
||||
te := req.Header.Get("TE")
|
||||
// "Te", not "TE": Header.Get canonicalises the key it is given, and a key that is already
|
||||
// canonical is returned as is, while any other spelling costs an allocated copy on every
|
||||
// call. This one runs once per response.
|
||||
te := req.Header.Get("Te")
|
||||
return strings.Contains(strings.ToLower(te), "trailers")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user