Closed thierrybucco closed 4 years ago
In OcarinaManager in taskDidComplete receiving a 404 statusCode will not execute failure block.
if let response = response, response.statusCode < 200 && response.statusCode >= 300 {
it should be response.statusCode < 200 || response.statusCode >= 300
Also it would be nice to expose HTTPURLResponse in error.UserInfo
That was a good catch, I've approved and merged your PR: https://github.com/awkward/Ocarina/pull/11
Thanks!
In OcarinaManager in taskDidComplete receiving a 404 statusCode will not execute failure block.
if let response = response, response.statusCode < 200 && response.statusCode >= 300 {
it should be response.statusCode < 200 || response.statusCode >= 300
Also it would be nice to expose HTTPURLResponse in error.UserInfo