fix: revert change that caused headers to be double merged if provider was authed in multiple places (#12072)

This commit is contained in:
Aiden Cline
2026-02-04 00:30:32 -06:00
committed by GitHub
parent 5aaf8f8247
commit 5588453cbe

View File

@@ -987,12 +987,6 @@ export namespace Provider {
const fetchFn = customFetch ?? fetch
const opts = init ?? {}
// Merge configured headers into request headers
opts.headers = {
...(opts.headers ?? {}),
...options["headers"],
}
if (options["timeout"] !== undefined && options["timeout"] !== null) {
const signals: AbortSignal[] = []
if (opts.signal) signals.push(opts.signal)