From cb149c23c1432fb2d768fbea1b5b2ea4b20cf9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Tue, 11 Jun 2019 12:48:45 -0300 Subject: [PATCH] Check if has headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- lib/bindings/http/emitter_binary_0_1.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bindings/http/emitter_binary_0_1.js b/lib/bindings/http/emitter_binary_0_1.js index d5d4001..440b237 100644 --- a/lib/bindings/http/emitter_binary_0_1.js +++ b/lib/bindings/http/emitter_binary_0_1.js @@ -5,7 +5,9 @@ const Constants = require("./constants.js"); function HTTPBinary(configuration){ this.config = configuration; - this.config["headers"] = {}; + if(!this.config["headers"]){ + this.config["headers"] = {}; + } this.config["headers"] [Constants.HEADER_CONTENT_TYPE] =