diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-05 16:52:07 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-10 15:40:20 -0800 |
commit | e9302c797f68c7e48b908b87b126045c8c5e5209 (patch) | |
tree | 044441cdb82ed8752401c43ead9e84018b067fbd /include/mbgl | |
parent | 7eb1a91c4e5134ecfbfb91b61a6622be40478af5 (diff) | |
download | qtlocation-mapboxgl-e9302c797f68c7e48b908b87b126045c8c5e5209.tar.gz |
[all] Don't interpret 404s on non-tile resources as "no content"
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/storage/response.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp index 278fce1dfe..162a272948 100644 --- a/include/mbgl/storage/response.hpp +++ b/include/mbgl/storage/response.hpp @@ -20,6 +20,10 @@ public: // When this object is empty, the response was successful. std::unique_ptr<const Error> error; + // This is set to true for 204 Not Modified responses, and, for backward compatibility, + // for 404 Not Found responses for tiles. + bool noContent = false; + // This is set to true for 304 Not Modified responses. bool notModified = false; |