client-http
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -12,1 +12,4 @@ # Changelog | ||
- enhancement: always return server response content, even if return status code is not 200 | ||
- 0.0.4 (02/25/2013) | ||
- fix bug: emergency fix of version 0.0.3 |
@@ -94,3 +94,5 @@ 'use strict'; | ||
} | ||
if (target){ | ||
if (target && target.host){ | ||
target.host = target.port ? | ||
target.host.replace(":" + target.port, "") : target.host; | ||
var result = { | ||
@@ -97,0 +99,0 @@ path: rawUrl, |
{ | ||
"name": "client-http", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Node client HTTP/HTTPS request wrapper for easy to make client HTTP/HTTPS request", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
8754
177