This commit is contained in:
6543 2022-07-15 19:08:19 +02:00
parent baf4e7e326
commit 8390f77ecd
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE

View file

@ -82,7 +82,9 @@ func (client *Client) ServeRawContent(uri string) (*fasthttp.Response, error) {
if err != nil {
return nil, err
}
// resp.SetBodyStream(&strings.Reader{}, -1)
// fasthttp else will set "Content-Length: 0"
res.SetBodyStream(&strings.Reader{}, -1)
if err != nil {
return nil, err