Gzhttp not supported decompress (Content-Encoding) request body #1001
Replies: 5 comments 2 replies
-
@mirecl Could you elaborate a bit more? Preferably with an example. Note that you should not add |
Beta Was this translation helpful? Give feedback.
-
@klauspost, I send http-request with gzip body and set header cat data.json | gzip | curl -v -i --data-binary @- -H "Content-Encoding: gzip" http://... But https://github.com/klauspost/compress/gzhttp don`t decompress request body automatically( For more detail: https://datatracker.ietf.org/doc/html/rfc7694 |
Beta Was this translation helpful? Give feedback.
-
@mirecl The package only does Response compression and decompression. Moving this to a feature request (pun not intended ;) |
Beta Was this translation helpful? Give feedback.
-
@klauspost create for example implement this feature: #1002 |
Beta Was this translation helpful? Give feedback.
-
@klauspost, when to expect a new release with this feature? |
Beta Was this translation helpful? Give feedback.
-
Gzhttp not supported uncompress (Content-Encoding) request body.
Gzhttp working only response body: https://github.com/klauspost/compress/blob/v1.17.9/gzhttp/compress.go#L467
Beta Was this translation helpful? Give feedback.
All reactions