We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 191ef94 commit c98d1f5Copy full SHA for c98d1f5
src/client.ts
@@ -515,8 +515,8 @@ export class Hanzo {
515
return;
516
}
517
518
- protected authHeaders(opts: FinalRequestOptions): Headers | undefined {
519
- return new Headers({ 'Ocp-Apim-Subscription-Key': this.apiKey });
+ protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
+ return buildHeaders([{ 'Ocp-Apim-Subscription-Key': this.apiKey }]);
520
521
522
protected stringifyQuery(query: Record<string, unknown>): string {
0 commit comments