diff --git a/utils/armClientGenerator/generator.ts b/utils/armClientGenerator/generator.ts index 1a6135644..f79af8a58 100644 --- a/utils/armClientGenerator/generator.ts +++ b/utils/armClientGenerator/generator.ts @@ -207,7 +207,7 @@ async function main() { ${bodyParam(bodyParameter, "Types")} ) : Promise<${responseType(operation, "Types")}> { const path = \`${path.replace(/{/g, "${")}\` - return window.fetch(this.baseUrl + this.basePath + path, { method: "${method}", ${ + return window.fetch(this.baseUrl + path, { method: "${method}", ${ bodyParameter ? "body: JSON.stringify(body)" : "" } }).then((response) => response.json()) }