Skip to content

Commit 152d996

Browse files
authored
fix: revert file upload fix since it is causing other unexpected errors (#48)
1 parent 9b0dcfa commit 152d996

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

dist/lib/proxy/lib/proxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,7 @@ Proxy.prototype._onRequestData = function (ctx, chunk, callback) {
11351135
if (err) {
11361136
return callback(err);
11371137
}
1138+
chunk = newChunk;
11381139
return callback(null, newChunk);
11391140
});
11401141
}, function (err) {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@requestly/requestly-proxy",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Proxy that gives superpowers to all the Requestly clients",
55
"main": "dist/index.js",
66
"scripts": {

src/lib/proxy/lib/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ Proxy.prototype._onRequestData = function (ctx, chunk, callback) {
13741374
if (err) {
13751375
return callback(err);
13761376
}
1377-
1377+
chunk = newChunk;
13781378
return callback(null, newChunk);
13791379
});
13801380
},

0 commit comments

Comments
 (0)