Fix interceptor auth injection on Windows

This commit is contained in:
Netzhangheng
2026-04-18 12:21:24 +08:00
parent 203e51786d
commit ee500ad782
+1 -1
View File
@@ -78,7 +78,7 @@ function tryInjectViaInterceptors(internal: UnknownRecord, auth: string): boolea
return false
}
use((request: Request): Request => {
requestInterceptors.use((request: Request): Request => {
if (!request.headers.get("Authorization")) {
request.headers.set("Authorization", auth)
}