Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

????

  • Loading branch information...
commit 04120976d636166b0c75fc310fa322c6b6460568 1 parent b3abd64
@tj tj authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/node/index.js
  2. +2 −2 lib/superagent.js
View
2  lib/node/index.js
@@ -485,7 +485,7 @@ Request.prototype.request = function(){
if (this.req) return this.req;
var self = this
, options = this.options || {}
- , data = this._data || null
+ , data = this._data
, url = this.url;
// default to http://
View
4 lib/superagent.js
@@ -526,7 +526,7 @@ var superagent = function(exports){
Request.prototype.end = function(fn){
var self = this
, xhr = this.xhr = getXHR()
- , data = this._data || null;
+ , data = this._data;
// store callback
this.callback = fn || noop;
@@ -537,7 +537,7 @@ var superagent = function(exports){
};
// querystring
- if ('GET' == this.method && null != data) {
+ if ('GET' == this.method && data) {
this.url += '?' + exports.serializeObject(data);
data = null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.