From: msweet Date: Wed, 23 Oct 2013 20:33:21 +0000 (+0000) Subject: Mirror fix from trunk. X-Git-Tag: release-1.7.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06cefec35c5d1d09aef40a025afbe51d3e5da41b;p=thirdparty%2Fcups.git Mirror fix from trunk. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11356 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/http.c b/cups/http.c index 736ea5e9bf..fa1836c89e 100644 --- a/cups/http.c +++ b/cups/http.c @@ -4169,12 +4169,16 @@ http_content_coding_finish( http_t *http) /* I - HTTP connection */ { int zerr; /* Compression status */ + Byte dummy[1]; /* Dummy read buffer */ switch (http->coding) { case _HTTP_CODING_DEFLATE : case _HTTP_CODING_GZIP : + http->stream.next_in = dummy; + http->stream.avail_in = 0; + do { http->stream.next_out = (Bytef *)http->wbuffer + http->wused;