mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-05 14:07:01 +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 {
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue