This commit is contained in:
6543 2022-07-15 19:10:55 +02:00
parent d669cc208f
commit d78c8c3201
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE

View file

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