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
Notice that it checks if ContentLength > 0 && ContentLenght <= 1<<20 but then outputs an error request requires explicit Content-Length under 1MB
What's the intention here? Are we rejecting content of:
a) less than 1MB in which case we should fix the error message
b) more than 1MB in which case we should fix the condition from <= to >=
I was just studying the build system and noticed this code
https://github.com/golang/build/blob/8c46052de7fa644a592f162aa0ffeedd959a9701/status/statusserver/statusserver.go#L115-L118
that is
Notice that it checks if
ContentLength > 0 && ContentLenght <= 1<<20
but then outputs an errorrequest requires explicit Content-Length under 1MB
What's the intention here? Are we rejecting content of:
a) less than 1MB in which case we should fix the error message
b) more than 1MB in which case we should fix the condition from
<=
to>=
Here is a repro
The text was updated successfully, but these errors were encountered: