Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/http/HttpResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class HttpResponse implements types.HttpResponse {
this.#uRes = init.undiciResponse;
} else {
const uResInit: uResponseInit = { status: init.status, headers: init.headers };
if (isDefined(init.jsonBody)) {
if (init.jsonBody !== undefined) {
this.#uRes = uResponse.json(init.jsonBody, uResInit);
Copy link
Contributor

@swapnil-nagar swapnil-nagar Feb 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have tests, covering these change?

} else {
this.#uRes = new uResponse(init.body, uResInit);
Expand Down
Loading