mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
fix #97
This commit is contained in:
parent
baf4e7e326
commit
8390f77ecd
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ func (client *Client) ServeRawContent(uri string) (*fasthttp.Response, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// resp.SetBodyStream(&strings.Reader{}, -1)
|
||||
|
||||
// fasthttp else will set "Content-Length: 0"
|
||||
res.SetBodyStream(&strings.Reader{}, -1)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue