Preserve the "timestamp" database field when expiring segments.
[cumulus.git] / format.cc
index 08c2f74..19cf28f 100644 (file)
--- a/format.cc
+++ b/format.cc
@@ -27,7 +27,7 @@ string uri_encode(const string &in)
     for (size_t i = 0; i < in.length(); i++) {
         unsigned char c = in[i];
 
-        if (c > '%' && c <= 0x7f) {
+        if (c >= '+' && c < 0x7f) {
             out += c;
         } else {
             char buf[4];