From 6f6a628a611573940b822b2f4d53623fdb7902af Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 10 Aug 2017 16:22:12 +0200 Subject: [PATCH] Fix lambda integration returning just newlines. --- src/index.js | 2 +- src/offline-default.res.vm | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 0988c2732..9b4a86c9c 100644 --- a/src/index.js +++ b/src/index.js @@ -670,7 +670,7 @@ class Offline { // BAD IMPLEMENTATION: first key in responseTemplates const responseTemplate = responseTemplates[responseContentType]; - if (responseTemplate) { + if (responseTemplate && responseTemplate !== '\n') { debugLog('_____ RESPONSE TEMPLATE PROCCESSING _____'); debugLog(`Using responseTemplate '${responseContentType}'`); diff --git a/src/offline-default.res.vm b/src/offline-default.res.vm index 8b1378917..e69de29bb 100644 --- a/src/offline-default.res.vm +++ b/src/offline-default.res.vm @@ -1 +0,0 @@ -