From 36af01daa6e04005ce3d18985eebaeef06f7393d Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Fri, 15 Sep 2023 00:39:37 +0200 Subject: [PATCH] fix: tus upload with cloudflare proxy closes #2593 --- http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http.go b/http/http.go index 70d7d9d1..984d1d1c 100644 --- a/http/http.go +++ b/http/http.go @@ -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")