Skip to content

Commit

Permalink
fix: tus upload with cloudflare proxy
Browse files Browse the repository at this point in the history
closes #2593
  • Loading branch information
o1egl committed Sep 14, 2023
1 parent d0c3b80 commit 36af01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewHandler(
api.PathPrefix("/resources").Handler(monkey(resourcePatchHandler(fileCache), "/api/resources")).Methods("PATCH")

api.PathPrefix("/tus").Handler(monkey(tusPostHandler(), "/api/tus")).Methods("POST")
api.PathPrefix("/tus").Handler(monkey(tusHeadHandler(), "/api/tus")).Methods("HEAD")
api.PathPrefix("/tus").Handler(monkey(tusHeadHandler(), "/api/tus")).Methods("HEAD", "GET")
api.PathPrefix("/tus").Handler(monkey(tusPatchHandler(), "/api/tus")).Methods("PATCH")

api.PathPrefix("/usage").Handler(monkey(diskUsage, "/api/usage")).Methods("GET")
Expand Down

0 comments on commit 36af01d

Please sign in to comment.