Skip to content

Commit 27fece9

Browse files
committed
minor: Fix POST Request AWS Signing
1 parent c4b71e7 commit 27fece9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/templates/core/axios/request.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ export class AxiosHttpRequest extends BaseHttpRequest {
116116
SessionToken: process.env.AWS_SESSION_TOKEN,
117117
Expiration: new Date()
118118
},
119-
url,
120-
options,
121-
headers,
122-
body: body ?? formData
119+
url,
120+
options,
121+
headers,
122+
body: body ?? formData
123123
});
124124
}
125125

src/templates/core/functions/signAWS.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function signAWS({ credentials, url, options, headers, body }: SignAWSPayl
2929
protocol: url.protocol,
3030
query: Object.fromEntries(url.searchParams),
3131
headers: headers,
32-
body: body
32+
body: JSON.stringify(body)
3333
});
3434
}
3535

0 commit comments

Comments
 (0)