From e9302c797f68c7e48b908b87b126045c8c5e5209 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 5 Feb 2016 16:52:07 -0800 Subject: [all] Don't interpret 404s on non-tile resources as "no content" --- include/mbgl/storage/response.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/mbgl/storage/response.hpp') 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 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; -- cgit v1.2.1