From c0f751e084bbb24b6ef30120898009a5e97d4646 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 17 Jul 2025 08:53:48 +0200 Subject: [PATCH] fix: Location header on TUS endpoint --- http/tus_handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http/tus_handlers.go b/http/tus_handlers.go index 002d78b5..9fd1780a 100644 --- a/http/tus_handlers.go +++ b/http/tus_handlers.go @@ -147,8 +147,7 @@ func tusPostHandler() handleFunc { // Enables the user to utilize the PATCH endpoint for uploading file data registerUpload(file.RealPath(), uploadLength) - // Signal the frontend to reuse the current request URL - w.Header().Set("Location", "") + w.Header().Set("Location", "/api/tus"+r.URL.Path) return http.StatusCreated, nil })