starhs-api-proxy-aws-lambda-client
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -96,3 +96,4 @@ 'use strict'; | ||
if (response.status === 204) return; | ||
if (response.headers.get('Content-Type') !== CONTENT_TYPE) { | ||
var responseContentType = response.headers.get('Content-Type'); | ||
if (!responseContentType || responseContentType.toLowerCase().indexOf(MIME_TYPE.toLowerCase()) !== 0) { | ||
return response.text().then(function (text) { | ||
@@ -99,0 +100,0 @@ throw new _rheactorModels.HttpProblem(new _rheactorValueObjects.URIValue('https://github.com/ResourcefulHumans/starhs-api-proxy-aws-lambda-client#fetchError'), 'Malformed server response!', response.status, JSON.stringify(text)); |
{ | ||
"name": "starhs-api-proxy-aws-lambda-client", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "API client for https://github.com/ResourcefulHumans/starhs-api-proxy-aws-lambda using fetch", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
15831
332