koa 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/response.js +0 -6
  2. package/package.json +1 -1
package/lib/response.js CHANGED
@@ -322,12 +322,6 @@ module.exports = {
322
322
  back (alt) {
323
323
  const referrer = this.ctx.get('Referrer')
324
324
  if (referrer) {
325
- // referrer is a relative path
326
- if (referrer.startsWith('/')) {
327
- this.redirect(referrer)
328
- return
329
- }
330
-
331
325
  // referrer is an absolute URL, check if it's the same origin
332
326
  const url = new URL(referrer, this.ctx.href)
333
327
  if (url.host === this.ctx.host) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koa",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Koa web app framework",
5
5
  "main": "lib/application.js",
6
6
  "exports": {