Check if has headers

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-11 12:48:45 -03:00
parent f4c86d460e
commit cb149c23c1
1 changed files with 3 additions and 1 deletions

View File

@ -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] =