Skip to content

Commit

Permalink
close body after forwarding request
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Apr 29, 2020
1 parent 1ba0da2 commit 3c5c8b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/http/services/owncloud/ocdav/tus.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func (s *svc) handleTusPost(w http.ResponseWriter, r *http.Request, ns string) {
w.WriteHeader(http.StatusInternalServerError)
return
}
defer r.Body.Close()

httpRes.Header.Set("Upload-Offset", httpRes.Header.Get("Upload-Offset"))
httpRes.Header.Set("Tus-Resumable", httpRes.Header.Get("Tus-Resumable"))
Expand Down

0 comments on commit 3c5c8b7

Please sign in to comment.