diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-08-26 13:34:46 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-09-24 16:14:09 +0200 |
commit | 91f83189816e9002dbb22d122683d409986f5fe9 (patch) | |
tree | 05653dfda2f358d4b2e0e0fee226d73eb11672cf /src | |
parent | 2f088b5938344f75d198c1ec6421a96e562bc405 (diff) | |
download | qtlocation-mapboxgl-91f83189816e9002dbb22d122683d409986f5fe9.tar.gz |
fix build issues
Diffstat (limited to 'src')
-rw-r--r-- | src/platform/response.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/response.cpp b/src/platform/response.cpp index f2117c8894..ce376380fa 100644 --- a/src/platform/response.cpp +++ b/src/platform/response.cpp @@ -8,6 +8,11 @@ namespace platform { void Response::setCacheControl(const char *value) { + if (!value) { + expires = -1; + return; + } + int seconds = 0; // TODO: cache-control may contain other information as well: // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 |