1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-05 03:30:05 +00:00

chore(axios): override default request transformer

This commit is contained in:
Yury Shkoda
2021-09-17 16:29:15 +03:00
parent 100da16803
commit c8da3a54cf

View File

@@ -281,7 +281,11 @@ export class RequestClient implements HttpClient {
}
try {
const response = await this.httpClient.post(url, content, { headers })
const response = await this.httpClient.post(url, content, {
headers,
transformRequest: (requestBody) => requestBody
})
return {
result: response.data,
etag: response.headers['etag'] as string