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
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));