@middy/http-response-serializer
Advanced tools
Comparing version 1.0.0-alpha.40 to 1.0.0-alpha.41
@@ -68,3 +68,3 @@ const createError = require('http-errors') | ||
headers: { | ||
'Accept': accept | ||
Accept: accept | ||
} | ||
@@ -91,3 +91,3 @@ } | ||
headers: { | ||
'Accept': 'application/xml, text/x-dvi; q=0.8, text/x-c' | ||
Accept: 'application/xml, text/x-dvi; q=0.8, text/x-c' | ||
} | ||
@@ -94,0 +94,0 @@ } |
@@ -28,3 +28,3 @@ const Accept = require('accept') | ||
types = [].concat( | ||
(requestHeaders['accept'] && Accept.mediaTypes(requestHeaders['accept'])) || [], | ||
(requestHeaders.accept && Accept.mediaTypes(requestHeaders.accept)) || [], | ||
handler.event.preferredContentType || [], | ||
@@ -31,0 +31,0 @@ opts.default || [] |
{ | ||
"name": "@middy/http-response-serializer", | ||
"version": "1.0.0-alpha.40", | ||
"version": "1.0.0-alpha.41", | ||
"description": "Http response serializer middleware for the middy framework", | ||
@@ -50,3 +50,3 @@ "engines": { | ||
}, | ||
"gitHead": "74c5e808c4658460bc198abd945ebefd4b7b6c90" | ||
"gitHead": "aa244c76000d1896ada6d683637a7c280127aa79" | ||
} |
16964