koa-redirect-loop
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -24,2 +24,5 @@ const Url = require('url-parse'); | ||
async middleware(ctx, next) { | ||
const { config } = this; | ||
const { redirect } = ctx; | ||
if (!ctx.session) { | ||
@@ -43,5 +46,2 @@ config.logger.error( | ||
const { config } = this; | ||
const { redirect } = ctx; | ||
ctx.redirect = function (url, alt) { | ||
@@ -48,0 +48,0 @@ let address = url; |
{ | ||
"name": "koa-redirect-loop", | ||
"description": "Prevent redirect loops with sessions since HTTP referrer header is unreliable and ensures sessions are saved upon redirect", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "ava": { |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0