Fix createHttpResponse

This commit is contained in:
Gusted 2022-11-15 16:03:40 +01:00
parent 827c582147
commit 202c950398
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -43,6 +43,8 @@ func (f FileResponse) IsEmpty() bool {
} }
func (f FileResponse) createHttpResponse(cacheKey string) (header http.Header, statusCode int) { func (f FileResponse) createHttpResponse(cacheKey string) (header http.Header, statusCode int) {
header = make(http.Header)
if f.Exists { if f.Exists {
statusCode = http.StatusOK statusCode = http.StatusOK
} else { } else {