fix: Correctly set the Content-Type header
This commit is contained in:
parent
c4ef20f513
commit
12aef17cc0
@ -124,7 +124,7 @@ func ServeFile(username, reponame, path, giteaUrl string, w http.ResponseWriter)
|
||||
)
|
||||
|
||||
log.Debugf("Page %s requested from Gitea and cached in memory at %v", path, now)
|
||||
w.WriteHeader(200)
|
||||
w.Header().Set("Content-Type", mimeType)
|
||||
w.WriteHeader(200)
|
||||
w.Write(content)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user