Skip to content

Commit 240630a

Browse files
committed
Update request.hbs
1 parent 7e445ed commit 240630a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/templates/core/axios/request.hbs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,11 @@ export class AxiosHttpRequest extends BaseHttpRequest {
9191
const headers = await getHeaders(options, this.openApiConfig, url);
9292

9393
{{#if @root.awsSign}}
94-
const signed = await signAWS({ url, options, headers, body: body ?? formData });
95-
console.log("It worked!", signed);
94+
const awsSigned = await signAWS({ url, options, headers, body: body ?? formData });
9695
{{/if}}
9796

9897
if (!onCancel.isCancelled) {
99-
const response = await sendRequest(options, url, formData, body, headers, onCancel, this.openApiConfig);
98+
const response = await sendRequest(options, url, formData, body, {{#if @root.awsSign}}awsSigned.headers{{else}}headers{{/if}}, onCancel, this.openApiConfig);
10099
const responseBody = getResponseBody(response);
101100
const responseHeader = getResponseHeader(response, options.responseHeader);
102101

0 commit comments

Comments
 (0)