Skip to content

Commit 769cf85

Browse files
authored
Merge pull request #691 from totaljs/revert-689-patch-1
Revert "Added condition to exclude body from GET requests"
2 parents abb8ce5 + 3ce3a79 commit 769cf85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ global.REQUEST = exports.request = function(url, flags, data, callback, cookies,
607607
data = '';
608608
}
609609

610-
if (type === 1 && !data && (data === EMPTYOBJECT || data === '' || data === undefined) && options.post)
610+
if (type === 1 && !data && (data === EMPTYOBJECT || data === '' || data === undefined))
611611
data = BUFEMPTYJSON;
612612
}
613613

@@ -6215,4 +6215,4 @@ exports.reader = function() {
62156215
const BUFEMPTYJSON = exports.createBuffer('{}');
62166216

62176217
global.WAIT = exports.wait;
6218-
!global.F && require('./index');
6218+
!global.F && require('./index');

0 commit comments

Comments
 (0)