Comparing version 2.8.1 to 2.8.2
2.8.2 / 2019-09-28 | ||
================== | ||
**fixes** | ||
* [[`54e8fab`](http://github.com/koajs/koa/commit/54e8fab3e3d907bbb264caf3e28a24773d0d6fdb)] - fix: encode redirect url if not already encoded (#1384) (fengmk2 <<fengmk2@gmail.com>>) | ||
**others** | ||
* [[`817b498`](http://github.com/koajs/koa/commit/817b49830571b45a8aec6b1fc1525434f5798c58)] - test: fix body test (#1375) (Robert Nagy <<ronagy@icloud.com>>) | ||
* [[`f75d445`](http://github.com/koajs/koa/commit/f75d4455359ecdf30eeb676e2c7f31d4cf7b42ed)] - test: fix end after end (#1374) (Robert Nagy <<ronagy@icloud.com>>) | ||
2.8.1 / 2019-08-19 | ||
@@ -3,0 +13,0 @@ ================== |
@@ -22,2 +22,3 @@ | ||
const util = require('util'); | ||
const encodeUrl = require('encodeurl'); | ||
@@ -264,3 +265,3 @@ /** | ||
if ('back' == url) url = this.ctx.get('Referrer') || alt || '/'; | ||
this.set('Location', url); | ||
this.set('Location', encodeUrl(url)); | ||
@@ -267,0 +268,0 @@ // status |
{ | ||
"name": "koa", | ||
"version": "2.8.1", | ||
"version": "2.8.2", | ||
"description": "Koa web app framework", | ||
@@ -34,2 +34,3 @@ "main": "lib/application.js", | ||
"destroy": "^1.0.4", | ||
"encodeurl": "^1.0.2", | ||
"error-inject": "^1.0.0", | ||
@@ -36,0 +37,0 @@ "escape-html": "^1.0.3", |
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
79985
1523
25
+ Addedencodeurl@^1.0.2
+ Addedencodeurl@1.0.2(transitive)