diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-10-08 16:05:27 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-10-08 16:05:27 +0200 |
commit | f807926f5e06f03c26afc0217f4af9864bf24a13 (patch) | |
tree | 5efdcccecb8354fae2f3ff8edb5683cc073d7f09 /common | |
parent | bf9435a2c48329cd30effc8ebb1d3ea1525167e6 (diff) | |
download | qtlocation-mapboxgl-f807926f5e06f03c26afc0217f4af9864bf24a13.tar.gz |
report a permanent error instead of aborting on unknown error codes
fixes #479
Diffstat (limited to 'common')
-rw-r--r-- | common/http_request_baton_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/http_request_baton_cocoa.mm b/common/http_request_baton_cocoa.mm index 623b2311be..a9992fad8c 100644 --- a/common/http_request_baton_cocoa.mm +++ b/common/http_request_baton_cocoa.mm @@ -103,7 +103,7 @@ void HTTPRequestBaton::start(const util::ptr<HTTPRequestBaton> &ptr) { } else if (code == 200) { baton->type = HTTPResponseType::Successful; } else { - assert(!"code must be either 200 or 304"); + baton->type = HTTPResponseType::PermanentError; } NSDictionary *headers = [(NSHTTPURLResponse *)res allHeaderFields]; |