hal-browser
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -0,1 +1,8 @@ | ||
0.7.2 (2019-03-26) | ||
================== | ||
* Fixed bug: `Content-Disposition` was checked in the Request headers, not | ||
the response headers. | ||
0.7.1 (2019-03-25) | ||
@@ -2,0 +9,0 @@ ================== |
@@ -118,3 +118,3 @@ "use strict"; | ||
// intended to create a download, we will also not render HTML. | ||
const cd = ctx.request.headers.get('Content-Disposition'); | ||
const cd = ctx.response.headers.get('Content-Disposition'); | ||
if (cd && cd.startsWith('attachment')) { | ||
@@ -121,0 +121,0 @@ return; |
{ | ||
"name": "hal-browser", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "A HAL browser middleware", | ||
@@ -43,3 +43,3 @@ "main": "dist/index.js", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.11.6", | ||
"@types/node": "^11.12.0", | ||
"@types/sinon": "^7.0.10", | ||
@@ -46,0 +46,0 @@ "chai": "^4.2.0", |
Sorry, the diff of this file is not supported yet
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
83403
72