mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
add newline
This commit is contained in:
parent
bf9a08e1fd
commit
91b54bef29
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client,
|
||||||
} else {
|
} else {
|
||||||
res, err = giteaClient.ServeRawContent(o.generateUriClientArgs())
|
res, err = giteaClient.ServeRawContent(o.generateUriClientArgs())
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().Msg("Aquisting")
|
log.Debug().Msg("Aquisting")
|
||||||
|
|
||||||
// Handle errors
|
// Handle errors
|
||||||
|
@ -158,6 +159,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client,
|
||||||
ctx.Redirect(o.redirectIfExists, fasthttp.StatusTemporaryRedirect)
|
ctx.Redirect(o.redirectIfExists, fasthttp.StatusTemporaryRedirect)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().Msg("Handling error")
|
log.Debug().Msg("Handling error")
|
||||||
|
|
||||||
// Set the MIME type
|
// Set the MIME type
|
||||||
|
@ -200,6 +202,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client,
|
||||||
html.ReturnErrorPage(ctx, fasthttp.StatusInternalServerError)
|
html.ReturnErrorPage(ctx, fasthttp.StatusInternalServerError)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().Msg("Sending response")
|
log.Debug().Msg("Sending response")
|
||||||
|
|
||||||
if res != nil && res.Header.ContentLength() <= fileCacheSizeLimit && ctx.Err() == nil {
|
if res != nil && res.Header.ContentLength() <= fileCacheSizeLimit && ctx.Err() == nil {
|
||||||
|
|
Loading…
Reference in a new issue