Set minted token on request header instead of response writer header.

This commit is contained in:
Benedikt Kulmann
2020-05-26 16:10:37 +02:00
parent d7eab50216
commit 87ff5f5d43

View File

@@ -103,7 +103,7 @@ func AccountUUID(opts ...AccountMiddlewareOption) func(next http.Handler) http.H
return
}
w.Header().Set("x-access-token", token)
r.Header.Set("x-access-token", token)
next.ServeHTTP(w, r)
})
}