Skip to content

Commit

Permalink
Fixing bug in empty options.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Mar 1, 2013
1 parent cba36ce commit c7a8be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ function Request (options) {
util.inherits(Request, stream.Stream)
Request.prototype.init = function (options) {
var self = this
if (!options) options = {}

self.method = options.method || 'GET'

if (!options) options = {}
if (request.debug) console.error('REQUEST', options)
if (!self.pool && self.pool !== false) self.pool = globalPool
self.dests = self.dests || []
Expand Down

0 comments on commit c7a8be6

Please sign in to comment.