spotify / XCMetrics

XCMetrics is the easiest way to collect Xcode build metrics and improve developer productivity.
https://xcmetrics.io
Other
1.1k stars 77 forks source link

Fix no authorization headers encoding #49

Closed alvarhansen closed 3 years ago

alvarhansen commented 3 years ago

Fixes NSURLErrorDomain error with code -1017 "cannot parse response".

URLSession does not support empty string header fields. If such header is set by URLRequest, the task will fail during request encoding.

To fix this issue, we do not set default empty string authorization headers.