Skip to content

Commit

Permalink
Remove gateway upload change
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Aug 18, 2020
1 parent 8049f83 commit f28639b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/http/services/dataprovider/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ func (s *svc) doTusPut(w http.ResponseWriter, r *http.Request) {

fp := r.Header.Get("File-Path")
if fp == "" {
log.Error().Msg("File-Path header not present")
w.WriteHeader(http.StatusBadRequest)
return
}

length, err := strconv.ParseInt(r.Header.Get("File-Size"), 10, 64)
length, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
if err != nil {
log.Error().Msg("File-Size header not present")
w.WriteHeader(http.StatusBadRequest)
return
}
Expand Down

0 comments on commit f28639b

Please sign in to comment.