Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed http.get for v0.6.x

  • Loading branch information...
commit 3593db4b5cd74b6791339fbf5189c63aeef2b66b 1 parent 139d035
@fengmk2 authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/curl.js
View
7 test/curl.js
@@ -278,7 +278,12 @@ describe('curl.js', function () {
});
it('should GET / return status 200 using normal http module', function (done) {
- require('http').get(homeurl, function (res) {
+ var info = require('url').parse(homeurl);
+ require('http').get({
+ host: info.hostname,
+ port: info.port,
+ path: info.path
+ }, function (res) {
res.should.status(200);
done();
});
Please sign in to comment.
Something went wrong with that request. Please try again.