From 24e841ae9758d545a720cf9be3009619373f55ee Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 20 Jan 2024 08:13:17 -0500 Subject: [PATCH] fix: use new copy of request --- api/middleware/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/middleware/s5.go b/api/middleware/s5.go index cf96563..52a69db 100644 --- a/api/middleware/s5.go +++ b/api/middleware/s5.go @@ -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 != "" {