when use nodejs load remote image with fullpath

sometime use server generate image, and passing parameter in url
so when send request should use full path, not only pathname
This commit is contained in:
tka 2013-05-03 15:24:18 +08:00
parent 35d5cf220f
commit 85f18e36f5

View file

@ -27,7 +27,7 @@
var req = reqHandler.request({
hostname: oURL.hostname,
port: oURL.port,
path: oURL.pathname,
path: oURL.path,
method: 'GET'
}, function(response){
var body = "";