agea / CmisJS

A CMIS javascript library for node and browser
MIT License
38 stars 34 forks source link

Fix case where cfg.headers was not defined #63

Closed mrodal closed 4 years ago

mrodal commented 4 years ago

When auth was undefined, cfg.headers was never initialized, so cfg.headers['Content-Type'] on line 290 failed

lmignon commented 4 years ago

@agea Are your sure the code is OK? Into the proposed change the header 'Authorization' is replaced by 'Content-Type'. With the merge into master we lost the 'Authorization' header...

agea commented 4 years ago

Yes I reverted the merge