From 2de3b570589cc0f1978baeb42744d3c7e4ad8a30 Mon Sep 17 00:00:00 2001 From: Radoslav Terezka Date: Mon, 19 Mar 2018 15:52:04 +0100 Subject: [PATCH] Add Content-Type header so logstash can process the request properly. --- logs_http.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logs_http.module b/logs_http.module index 1f0cf79..502b69b 100644 --- a/logs_http.module +++ b/logs_http.module @@ -104,6 +104,9 @@ function logs_http_shutdown() { $options = array( 'method' => 'POST', 'data' => drupal_json_encode($event), + 'headers' => array ( + 'Content-Type' => 'application/json', + ), ); // Send data to Logs.