You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the Content-Type header is not set when the size of the response body is smaller than the jitter entropy buffer, which doesn't seem like normal behavior at a first glance. As requested, please find a reproduction below:
References #762 (comment)
It seems that the
Content-Type
header is not set when the size of the response body is smaller than the jitter entropy buffer, which doesn't seem like normal behavior at a first glance. As requested, please find a reproduction below:On
go version go1.21.3 darwin/arm64
this outputs:As mentioned in the original issue, I think the culprit is the jitter buffer size guard added here:
compress/gzhttp/compress.go
Lines 127 to 130 in 847c1b4
I cannot tell what was the original intent, but I would've expected that the size of the entropy pool won't affect the
Content-Type
logic.cc @klauspost (and apologies for the original necropost).
The text was updated successfully, but these errors were encountered: