mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
Fix createHttpResponse
This commit is contained in:
parent
827c582147
commit
202c950398
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ func (f FileResponse) IsEmpty() bool {
|
|||
}
|
||||
|
||||
func (f FileResponse) createHttpResponse(cacheKey string) (header http.Header, statusCode int) {
|
||||
header = make(http.Header)
|
||||
|
||||
if f.Exists {
|
||||
statusCode = http.StatusOK
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue