Skip to content

Commit

Permalink
handle String object for request body #1269
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Dec 15, 2023
1 parent ecf05a8 commit ff0c2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/network/http/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ function server(message, value, etc) {
byteLength = parseInt(headers[i + 1]);
}

this.body = response.body;
this.body = (response.body instanceof String) ? response.body.valueOf() : response.body; // #1269
if (true === response.body) {
if (undefined === byteLength) {
this.flags = 2;
Expand Down

0 comments on commit ff0c2ee

Please sign in to comment.