serverless-offline
Advanced tools
Comparing version 1.2.5 to 1.2.6
{ | ||
"name": "serverless-offline", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "A Serverless plugin to emulate AWS APIG and Lambda offline.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -324,2 +324,3 @@ 'use strict'; | ||
// If there is a responseTemplates, we apply it to the finalResult | ||
let responseContentType = defaultContentType; | ||
const responseTemplates = finalResponse.responseTemplates; | ||
@@ -341,3 +342,3 @@ | ||
/* ... */ | ||
responseContentType = templateName; | ||
debugLog(`Using responseTemplate '${templateName}'`); | ||
@@ -358,2 +359,3 @@ | ||
response.source = finalResult; | ||
response.header('content-type', responseContentType); | ||
@@ -360,0 +362,0 @@ let whatToLog = finalResult; |
31729
519