fix: Location header on TUS endpoint
This commit is contained in:
parent
d61110e4d7
commit
c0f751e084
@ -147,8 +147,7 @@ func tusPostHandler() handleFunc {
|
|||||||
// Enables the user to utilize the PATCH endpoint for uploading file data
|
// Enables the user to utilize the PATCH endpoint for uploading file data
|
||||||
registerUpload(file.RealPath(), uploadLength)
|
registerUpload(file.RealPath(), uploadLength)
|
||||||
|
|
||||||
// Signal the frontend to reuse the current request URL
|
w.Header().Set("Location", "/api/tus"+r.URL.Path)
|
||||||
w.Header().Set("Location", "")
|
|
||||||
|
|
||||||
return http.StatusCreated, nil
|
return http.StatusCreated, nil
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user