Comparing version 0.0.26 to 0.0.27
@@ -28,4 +28,2 @@ /* | ||
ralUtil.merge(config.query, data); | ||
config.headers = config.headers || {}; | ||
config.headers['Content-Type'] = 'application/json'; | ||
logger.trace('pack querystring data succ ServiceID=' + config.serviceID + ' data=' + JSON.stringify(config.query)); | ||
@@ -32,0 +30,0 @@ return null; |
@@ -67,3 +67,3 @@ /* | ||
var req = request.request(opt, function(res){ | ||
if (res.statusCode >= 300) { | ||
if (res.statusCode >= 300 && !config.ignoreStatusCode) { | ||
req.emit('error', new Error('Server Status Error: ' + res.statusCode)); | ||
@@ -70,0 +70,0 @@ } |
{ | ||
"name": "node-ral", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "a rpc client for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
260219
7096