hal-browser
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,9 @@ | ||
0.6.1 (2018-11-01) | ||
================== | ||
* Some clients default to sending `Accept: */*`. For those clients we want to | ||
not automatically convert to `text/html`. This fixes the default output for | ||
Curl and Fetch. | ||
0.6.0 (2018-10-12) | ||
@@ -2,0 +10,0 @@ ================== |
@@ -119,4 +119,7 @@ "use strict"; | ||
// | ||
// This is useful if the client submitted a lower q= score for text/html | ||
if (ctx.accepts('text/html', ...exports.supportedContentTypes) === 'text/html') { | ||
// This is useful if the client submitted a lower q= score for text/html. | ||
// | ||
// In addition, we also want to make sure that requests for */* result in | ||
// the original contenttype. Users have to explicitly request text/html. | ||
if (ctx.accepts(...exports.supportedContentTypes, 'text/html') === 'text/html') { | ||
await html_index_1.default(ctx, newOptions); | ||
@@ -123,0 +126,0 @@ } |
{ | ||
"name": "hal-browser", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A HAL browser middleware", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
73061
1256