ee-soa-transport-rest
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -56,3 +56,3 @@ "use strict"; | ||
, sendHTTPResponse: function(status, languages, request, response, data, httpResponse){ | ||
, sendHTTPResponse: function(status, language, request, response, data, httpResponse){ | ||
if(status === Response.statusCodes.ACCESS_UNAUTHORIZED){ | ||
@@ -65,3 +65,3 @@ httpResponse.setHeader('WWW-Authenticate', 'ee-simple'); | ||
var httpStatus = this._prepareStatus(status); | ||
httpResponse.render(httpStatus, languages, response.headers, data, function(err){}); | ||
httpResponse.render(httpStatus, language, response.headers, data, function(err){}); | ||
} | ||
@@ -68,0 +68,0 @@ |
@@ -257,3 +257,3 @@ "use strict"; | ||
if (debug) log.warn('request on «%s» took % ms ...', req.pathname, Date.now()-startTime); | ||
this.responseFactory.sendHTTPResponse(status, req.languages, request, response, content, res); | ||
this.responseFactory.sendHTTPResponse(status, req.language, request, response, content, res); | ||
}.bind(this)); | ||
@@ -260,0 +260,0 @@ |
{ | ||
"name" : "ee-soa-transport-rest" | ||
, "description" : "Rest specific transport implementation." | ||
, "version" : "0.4.1" | ||
, "version" : "0.4.2" | ||
, "homepage" : "https://github.com/eventEmitter/ee-soa-transport-rest" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael Rüfenacht <ruefe@rcky.ch> (http://rcky.ch/)" |
67525