nodules / asker

http.request wrapper with gzip, request retries and http.Agent tuning
MIT License
93 stars 11 forks source link

calling request constructor without options hash leads to error #5

Closed kaero closed 11 years ago

kaero commented 11 years ago
var Request = require('asker'),
    request = new Request();

produce unexpected error

TypeError: Cannot read property 'headers' of undefined
    at new Request (/Users/kaero/work/asker/lib/asker.js:63:39)