joepie91 / node-bhttp

A sane HTTP client library for Node.js with Streams2 support.
62 stars 12 forks source link

invalid URLs not properly handled #4

Open stevenvachon opened 9 years ago

stevenvachon commented 9 years ago
require("bhttp").head("http://", {}, function(error, response) {
    console.log(error)
    // { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
})
require("bhttp").get("/dir/file.html")
// TypeError: Cannot read property 'length' of null