In "fetch", don't pass a "body" value if there isn't one

This commit is contained in:
Steve Sanderson 2018-02-28 15:24:45 +00:00
parent 1d07783522
commit dd831b4552
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ async function sendAsync(id: number, method: string, requestUri: string, body: s
try {
response = await fetch(requestUri, {
method: method,
body: body,
body: body || undefined,
headers: headersJson ? (JSON.parse(headersJson) as string[][]) : undefined
});
responseText = await response.text();