Skip to content

Commit 5e49ef8

Browse files
fix(client): send all configured auth headers (#108)
1 parent dd850ba commit 5e49ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export class Stainless {
179179
return;
180180
}
181181

182-
protected authHeaders(opts: FinalRequestOptions): Headers | undefined {
183-
return new Headers({ Authorization: this.apiKey });
182+
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
183+
return buildHeaders([{ Authorization: this.apiKey }]);
184184
}
185185

186186
/**

0 commit comments

Comments
 (0)