-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decompress_body
: Do we want to recalculate content-length
?
#239
Comments
decompress_body
: Ensure we want to recalculate content-length
decompress_body
: Do we want to recalculate content-length
?
Same for Go package main
import (
"fmt"
"net/http"
)
func main() {
resp, _ := http.Get("https://httpbin.org/gzip")
fmt.Printf("resp.Uncompressed = %v\n", resp.Uncompressed)
for name, values := range resp.Header {
fmt.Printf("%v: %v\n", name, values)
}
}
|
🤔 when would such value become valuable to recompute vs. letting upstream recompute it? The only use cases I am thinking off is proxies-like use cases, but I am not sure if somebody should rely on the headers or be safe and check the body 🤷🏻 Any commitment to a particular behavior from your end thus far? |
Yeah exactly not sure we need to recompute it so I wouldn’t but ideally there is some prior art to go one way or the other. |
Would it be a good bet to follow While typing something came to my mind: how OTEL**** and telemetry would handle the situation? |
Both
fetch()
andreqwest
are dropping them: #190 (comment)The text was updated successfully, but these errors were encountered: