connect-rest
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -6,3 +6,3 @@ /* | ||
*/ | ||
var VERSION = '0.0.26'; | ||
var VERSION = '0.0.27'; | ||
@@ -126,3 +126,3 @@ var connect = require('connect'); | ||
if( asyncCall ){ | ||
httphelper.generalCall( http, https, url, asyncCall, err, result, logger, function(er, response){ | ||
httphelper.generalCall( http, https, url, _, asyncCall, 'POST', err, result, logger, function(er, response){ | ||
if(er) | ||
@@ -152,3 +152,3 @@ logger.error( er ); | ||
res.statusCode = 200; | ||
res.end( { answer: 'OK.'} ); | ||
res.end( JSON.stringify( { answer: 'OK.'} ) ); | ||
} | ||
@@ -155,0 +155,0 @@ } |
@@ -11,3 +11,3 @@ exports.opt = { | ||
}; | ||
exports.generalCall = function(http, https, url, serverURL, err, result, logger, callback){ | ||
exports.generalCall = function(http, https, url, _, serverURL, method, err, result, logger, callback){ | ||
var server = url.parse( serverURL ); | ||
@@ -18,6 +18,8 @@ | ||
var voptions = global._.clone( exports.opt ); | ||
var voptions = _.clone( exports.opt ); | ||
voptions.hostname = server.hostname; | ||
voptions.port = server.port; | ||
voptions.path = server.path; | ||
if(method) | ||
voptions.method = method; | ||
@@ -24,0 +26,0 @@ var lib =(server.protocol == 'https:' ? https : http); |
{ | ||
"name": "connect-rest", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "RESTful web services middleware for Connect.", | ||
@@ -49,4 +49,4 @@ "keywords": [ | ||
"readme": "README.md", | ||
"_id": "connect-rest@0.0.26", | ||
"_from": "connect-rest@>=0.0.26" | ||
"_id": "connect-rest@0.0.27", | ||
"_from": "connect-rest@>=0.0.27" | ||
} |
@@ -416,3 +416,3 @@ [connect-rest](https://github.com/imrefazekas/connect-rest) is a middleware for [connect](http://www.senchalabs.org/connect/) for building REST APIs providing service discovery and path-based parameter mapping and "reflective" publishing and node domains as well. | ||
- 0.0.26: async request fix | ||
- 0.0.26-27: async request fix | ||
- 0.0.23-25: small fix for content type management | ||
@@ -419,0 +419,0 @@ - 0.0.22: response header customization added |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49452
15
694
5