summaryrefslogtreecommitdiff
path: root/include/mbgl/storage
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-03 17:35:06 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-10 15:40:20 -0800
commit7eb1a91c4e5134ecfbfb91b61a6622be40478af5 (patch)
treef017137f503ad7ce528b1bcb12f5df35bb319413 /include/mbgl/storage
parentcdedb66387065680efd318dacb61572c920b81b1 (diff)
downloadqtlocation-mapboxgl-7eb1a91c4e5134ecfbfb91b61a6622be40478af5.tar.gz
[all] Do not set Response data for 404s
For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r--include/mbgl/storage/response.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index a44902e1f9..278fce1dfe 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -23,7 +23,7 @@ public:
// This is set to true for 304 Not Modified responses.
bool notModified = false;
- // The actual data of the response. This is null if notModified is true.
+ // The actual data of the response. Present only for non-error, non-notModified responses.
std::shared_ptr<const std::string> data;
optional<SystemTimePoint> modified;