Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah authored Jul 30, 2021
1 parent 1f9f85e commit 19b6a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/servers/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class AzureFunctionServer extends Server {
async (response) => {
context.res!.status = response ? response.status || 200 : 200;
context.res!.header('Content-type', 'application/json');
for (const key in response?.headers) context.res!.header(key, response?.headers[key]);
if (response) {
for (const key in response.headers) context.res!.header(key, response.headers[key]);
}
context.res!.send(response!.body);
}
);
Expand Down

0 comments on commit 19b6a5c

Please sign in to comment.