Permalink
Browse files

????

  • Loading branch information...
tj committed Jan 24, 2012
1 parent b3abd64 commit 04120976d636166b0c75fc310fa322c6b6460568
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/node/index.js
  2. +2 −2 lib/superagent.js
View
@@ -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
@@ -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;
}

0 comments on commit 0412097

Please sign in to comment.