From 1c21d0fd4cd30cbf6c5b863fd0179b227c28bc0b Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 19 Jan 2016 15:57:17 -0800 Subject: [core] Use better types for modified / expires / etag --- include/mbgl/storage/response.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/mbgl/storage/response.hpp') diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp index a7a200c53a..e81af710f7 100644 --- a/include/mbgl/storage/response.hpp +++ b/include/mbgl/storage/response.hpp @@ -2,6 +2,7 @@ #define MBGL_STORAGE_RESPONSE #include +#include #include #include @@ -25,9 +26,9 @@ public: // The actual data of the response. This is guaranteed to never be empty. std::shared_ptr data; - Seconds modified = Seconds::zero(); - Seconds expires = Seconds::zero(); - std::string etag; + optional modified; + optional expires; + optional etag; }; class Response::Error { -- cgit v1.2.1