mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-04 19:20:05 +00:00
chore(axios): override default request transformer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user