Check if has headers
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
f4c86d460e
commit
cb149c23c1
|
@ -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] =
|
||||
|
|
Loading…
Reference in New Issue