Skip to content

Commit

Permalink
Remove incorrect content-lenght.
Browse files Browse the repository at this point in the history
  • Loading branch information
luborco committed Aug 27, 2024
1 parent 9163358 commit 1d5cf82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/service/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ func GetHTTPStatusCode(code codes.Code) int {
}

func setHeader(headers http.Header, protoMajor int, name string, values []string) {
// content-length header will be not processing
if name == headerContentLength {
return
}
// RFC 9113 8.2.2.: endpoint MUST NOT generate an HTTP/2 message containing connection-specific header fields
if protoMajor > 1 && isConnectionSpecificHeader(name) {
return
Expand Down

0 comments on commit 1d5cf82

Please sign in to comment.