fix: use new copy of request
This commit is contained in:
parent
a1e7cda659
commit
24e841ae97
|
@ -117,7 +117,7 @@ func (w *tusJwtResponseWriter) WriteHeader(statusCode int) {
|
||||||
// Check if this is the specific route and status
|
// Check if this is the specific route and status
|
||||||
if statusCode == http.StatusCreated {
|
if statusCode == http.StatusCreated {
|
||||||
location := w.Header().Get("Location")
|
location := w.Header().Get("Location")
|
||||||
authToken := parseAuthTokenHeader(w.Header())
|
authToken := parseAuthTokenHeader(w.req.Header)
|
||||||
|
|
||||||
if authToken != "" && location != "" {
|
if authToken != "" && location != "" {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue