We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b3aa25 + 2a16a25 commit 17e5024Copy full SHA for 17e5024
src/puter-js/src/modules/networking/requests.js
@@ -91,7 +91,7 @@ export function pFetch(...args) {
91
responseHead += decoder.decode(data, { stream: true });
92
93
// See if we have the HEAD of an HTTP/1.1 yet
94
- if (reqHead.indexOf("\r\n\r\n") !== -1) {
+ if (responseHead.indexOf("\r\n\r\n") !== -1) {
95
dataOffset = responseHead.indexOf("\r\n\r\n");
96
responseHead = responseHead.slice(0, dataOffset);
97
const parsedHead = parseHTTPHead(responseHead);
0 commit comments