req = http.request options, (res) ->
res.on 'data', (chunk) ->
data += chunk
return
res.on 'end', ->
if res.statusCode is 200
console.log res
console.log data
callback null, data
else
callback(new Error("Response status code: " + res.statusCode), data)
return
return
当我输出数据时,我得到:
[object Object][["INZ", 41.878113599999999, -87.629798199999996]]
这很奇怪,因为后面的部分[object Object]
都很好。有任何想法吗?