Merge branch 'main' into std-http

This commit is contained in:
6543 2022-07-15 21:27:28 +02:00
commit b377efbbda
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
6 changed files with 22 additions and 7 deletions

View file

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