Move stringifying of request body for azure REST calls (#22820)

* Move stringifying of request body for azure REST calls

* spelling

* Remove unused
This commit is contained in:
Charles Gagnon
2023-04-21 13:27:11 -07:00
committed by GitHub
parent ec81fc89bb
commit 3bd85a5798
2 changed files with 3 additions and 2 deletions

View File

@@ -396,9 +396,10 @@ export async function makeHttpRequest(account: AzureAccount, subscription: azure
...requestHeaders
}
const body = JSON.stringify(requestBody || '');
let networkRequestOptions: NetworkRequestOptions = {
headers: reqHeaders,
body: requestBody
body
};
// Adding '/' if path does not begin with it.