mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-01-19 08:57:55 +00:00
fix #97
This commit is contained in:
parent
d669cc208f
commit
d78c8c3201
1 changed files with 2 additions and 4 deletions
|
@ -58,11 +58,9 @@ func (client *Client) ServeRawContent(uri string) (*fasthttp.Response, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// resp.SetBodyStream(&strings.Reader{}, -1)
|
|
||||||
|
|
||||||
if err != nil {
|
// fasthttp else will set "Content-Length: 0"
|
||||||
return nil, err
|
resp.SetBodyStream(&strings.Reader{}, -1)
|
||||||
}
|
|
||||||
|
|
||||||
switch res.StatusCode() {
|
switch res.StatusCode() {
|
||||||
case fasthttp.StatusOK:
|
case fasthttp.StatusOK:
|
||||||
|
|
Loading…
Reference in a new issue