fix: Location header on TUS endpoint
parent
d61110e4d7
commit
c0f751e084
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue