From 896f05aea6c380167be839b844adcc5cfd07cab0 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 14 Nov 2014 14:20:33 -0800 Subject: [PATCH] Use gzip tile compression to match current tile server --- tile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cc b/tile.cc index cb0bcabc..7646dd09 100644 --- a/tile.cc +++ b/tile.cc @@ -35,7 +35,7 @@ static inline int compress(std::string const& input, std::string& output) { deflate_s.opaque = Z_NULL; deflate_s.avail_in = 0; deflate_s.next_in = Z_NULL; - deflateInit(&deflate_s, Z_DEFAULT_COMPRESSION); + deflateInit2(&deflate_s, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 31, 8, Z_DEFAULT_STRATEGY); deflate_s.next_in = (Bytef *)input.data(); deflate_s.avail_in = input.size(); size_t length = 0;