From dff6609fe329a6a596975fb1c161e852133b95c4 Mon Sep 17 00:00:00 2001
From: Paul Fryer <paulfryer@macrowebservices.com>
Date: Thu, 29 Mar 2018 14:47:00 -0700
Subject: [PATCH] Updated code with a missing HTTP header

The Content Type header is required by the ElasticSearch service.
---
 ElasticSearchLambda/ZombieWorkshopSearchIndexing.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ElasticSearchLambda/ZombieWorkshopSearchIndexing.js b/ElasticSearchLambda/ZombieWorkshopSearchIndexing.js
index 9bf7442..be02164 100644
--- a/ElasticSearchLambda/ZombieWorkshopSearchIndexing.js
+++ b/ElasticSearchLambda/ZombieWorkshopSearchIndexing.js
@@ -48,6 +48,7 @@ function postToES(doc, context) {
     req.region = esDomain.region;
     req.headers['presigned-expires'] = false;
     req.headers['Host'] = endpoint.host;
+    req.headers['Content-Type'] = 'application/json';
     req.body = doc;
 
     console.log('Creating the Signer for the post request');