fix: use new copy of request

This commit is contained in:
Derrick Hammer 2024-01-20 08:13:17 -05:00
parent a1e7cda659
commit 24e841ae97
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ func (w *tusJwtResponseWriter) WriteHeader(statusCode int) {
// Check if this is the specific route and status
if statusCode == http.StatusCreated {
location := w.Header().Get("Location")
authToken := parseAuthTokenHeader(w.Header())
authToken := parseAuthTokenHeader(w.req.Header)
if authToken != "" && location != "" {