Skip to content

Commit

Permalink
Fix cookies.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Jan 9, 2018
1 parent 53f62d6 commit 36e5776
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -3896,6 +3896,7 @@ RESTBuilder.prototype.raw = function(value) {
};

RESTBuilder.prototype.cook = function(value) {
this.$flags = null;
this.$persistentcookies = value !== false;
return this;
};
Expand Down Expand Up @@ -3950,6 +3951,7 @@ RESTBuilder.prototype.stream = function(callback) {

if (!self.$flags) {
!self.$nodnscache && flags.push('dnscache');
self.$persistentcookies && flags.push('cookies');
switch (self.$type) {
case 1:
flags.push('json');
Expand Down Expand Up @@ -3980,6 +3982,7 @@ RESTBuilder.prototype.exec = function(callback) {
if (!self.$flags) {

!self.$nodnscache && flags.push('dnscache');
self.$persistentcookies && flags.push('cookies');
self.$length && flags.push('<' + self.$length);
self.$redirect === false && flags.push('noredirect');

Expand Down

0 comments on commit 36e5776

Please sign in to comment.