mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
Fixes #1418 If neither the `Transfer-Encoding` nor the `Content-Length` headers are provided in chunked uploads, **fasthttp** assumes there is no request body and sets the request body reader to `nil`. This leads to a panic in the auth reader when it attempts to read the body. The fix ensures that if the request body reader is `nil`, it is overridden with an `empty reader` to prevent panics.