Skip to content

Commit

Permalink
Reverted formating change
Browse files Browse the repository at this point in the history
  • Loading branch information
thehansys committed Oct 8, 2024
1 parent 1a889cb commit af15d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/astro/src/core/app/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export class NodeApp extends App {
headers: makeRequestHeaders(req),
};
const bodyAllowed = options.method !== 'HEAD' && options.method !== 'GET' && skipBody === false;
if (bodyAllowed) Object.assign(options, makeRequestBody(req));
if (bodyAllowed) {
Object.assign(options, makeRequestBody(req));
}

const request = new Request(url, options);

Expand Down

0 comments on commit af15d0c

Please sign in to comment.