Skip to content

Commit c98d1f5

Browse files
fix(client): send all configured auth headers (#29)
1 parent 191ef94 commit c98d1f5

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
@@ -515,8 +515,8 @@ export class Hanzo {
515515
return;
516516
}
517517

518-
protected authHeaders(opts: FinalRequestOptions): Headers | undefined {
519-
return new Headers({ 'Ocp-Apim-Subscription-Key': this.apiKey });
518+
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
519+
return buildHeaders([{ 'Ocp-Apim-Subscription-Key': this.apiKey }]);
520520
}
521521

522522
protected stringifyQuery(query: Record<string, unknown>): string {

0 commit comments

Comments
 (0)