ee-soa-transport-rewrite
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -36,3 +36,3 @@ { | ||
} else if (type.function(target)) { | ||
target = target(pathRegexpResult, response); | ||
target = target(pathRegexpResult, request, response); | ||
@@ -39,0 +39,0 @@ if (!response.isSent) { |
{ | ||
"name" : "ee-soa-transport-rewrite" | ||
, "description" : "Rewriting middleware for the ee-soa-transports" | ||
, "version" : "0.2.4" | ||
, "version" : "0.2.5" | ||
, "homepage" : "https://github.com/eventEmitter/ee-soa-transport-rewrite" | ||
@@ -6,0 +6,0 @@ , "author" : { |
@@ -129,3 +129,3 @@ const assert = require('assert'); | ||
, status: 303 | ||
, target: (matches, res) => { | ||
, target: (matches, req, res) => { | ||
return `/hui/${matches[1]}` | ||
@@ -151,3 +151,3 @@ } | ||
, status: 303 | ||
, target: (matches, res) => { | ||
, target: (matches, req, res) => { | ||
res.setHeader('Location', `/hui/${matches[1]}`); | ||
@@ -154,0 +154,0 @@ res.send(307); |
59422