Skip to content

Commit

Permalink
Fix bug in handlePutHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Oct 29, 2020
1 parent 39bfb5b commit 44f1e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/put.go
Expand Up @@ -263,7 +263,7 @@ func (s *svc) handlePutHelper(w http.ResponseWriter, r *http.Request, content io
return
}

httpReq, err := rhttp.NewRequest(ctx, "PUT", uRes.UploadEndpoint, r.Body)
httpReq, err := rhttp.NewRequest(ctx, "PUT", uRes.UploadEndpoint, content)
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
return
Expand Down

0 comments on commit 44f1e3f

Please sign in to comment.