mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 14:26:58 +00:00
Merge branch 'main' into std-http
This commit is contained in:
commit
b377efbbda
6 changed files with 22 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue