Skip to content

Commit b93a287

Browse files
committed
Update getHeaders.hbs
1 parent 479ad91 commit b93a287

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/templates/core/axios/getHeaders.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ async function getHeaders(options: ApiRequestOptions, config: OpenAPIConfig2, ur
55

66
const headers = Object.entries({
77
Accept: 'application/json',
8+
{{#if @root.awsSign}}
89
host: url.hostname,
10+
{{/if}}
911
...options.headers,
1012
})
1113
.filter(([_, value]) => isDefined(value))

0 commit comments

Comments
 (0)