]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
<rdar://problem/13854722> 13A459 Printing completely broken on MBP after upgrade...
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 31 May 2013 13:29:59 +0000 (13:29 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 31 May 2013 13:29:59 +0000 (13:29 +0000)
Fix httpFlushWrite, which was incorrectly updating data_remaining.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11003 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/http.c

index 046b20c52241b04258c7fc9d00db2f86d416aa43..8ac76740125ef249c55e58dc8d4391931a95aaff 100644 (file)
@@ -959,19 +959,8 @@ httpFlushWrite(http_t *http)               /* I - Connection to server */
   if (http->data_encoding == HTTP_ENCODING_CHUNKED)
     bytes = http_write_chunk(http, http->wbuffer, http->wused);
   else
-  {
     bytes = http_write(http, http->wbuffer, http->wused);
 
-    if (bytes > 0 && http->data_encoding == HTTP_ENCODING_LENGTH)
-    {
-      http->data_remaining -= bytes;
-
-      if (http->data_remaining <= 0)
-      {
-      }
-    }
-  }
-
   http->wused = 0;
 
   DEBUG_printf(("1httpFlushWrite: Returning %d, errno=%d.", bytes, errno));