close api response body
This commit is contained in:
parent
8fa8e6844f
commit
1b5ab5659d
2 changed files with 4 additions and 2 deletions
|
|
@ -49,6 +49,7 @@ func (f *Forgejo) handle(w http.ResponseWriter, r *http.Request) {
|
|||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
defer content.Close()
|
||||
|
||||
trySet(w.Header(), "Etag", info.ETag)
|
||||
trySet(w.Header(), "Last-Modified", info.LastModified)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue