fix: Location header on TUS endpoint

pull/5302/head
Henrique Dias 2025-07-17 08:53:48 +02:00
parent d61110e4d7
commit c0f751e084
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -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
})