feito fork de coolaj86/goldilocks.js
made status optional for redirection
Esse commit está contido em:
pai
d16f857fca
commit
474f9766d8
@ -165,7 +165,7 @@ module.exports.create = function (deps, conf, greenlockMiddleware) {
|
||||
match.slice(1).forEach(function (globMatch, index) {
|
||||
to = to.replace(':'+(index+1), globMatch);
|
||||
});
|
||||
res.writeHead(mod.status, { 'Location': to });
|
||||
res.writeHead(mod.status || 301, { 'Location': to });
|
||||
res.end();
|
||||
};
|
||||
}
|
||||
|
||||
Carregando…
x
Referência em uma nova issue
Block a user