diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-13 16:47:36 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-14 13:46:03 -0800 |
commit | 2aafdbc1b84192d9a51ff7f5f9d9830e0951bb2a (patch) | |
tree | b43c6d0bbb86988628c611f21ba7d2cc15340c40 /include/mbgl/storage | |
parent | 2ee1fe41786742332d190b01e28ba88a72c59f43 (diff) | |
download | qtlocation-mapboxgl-2aafdbc1b84192d9a51ff7f5f9d9830e0951bb2a.tar.gz |
[core] Add an explicit "not modified" indicator to Response
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/response.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp index 852110cb2a..532a91da97 100644 --- a/include/mbgl/storage/response.hpp +++ b/include/mbgl/storage/response.hpp @@ -24,6 +24,9 @@ public: // Stale responses are fetched from cache and are expired. bool stale = false; + // This is set to true for 304 Not Modified responses. + bool notModified = false; + // The actual data of the response. This is guaranteed to never be empty. std::shared_ptr<const std::string> data; |