Closed mrodal closed 4 years ago
When auth was undefined, cfg.headers was never initialized, so cfg.headers['Content-Type'] on line 290 failed
@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...
Yes I reverted the merge
When auth was undefined, cfg.headers was never initialized, so cfg.headers['Content-Type'] on line 290 failed