mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
lib: move handling of data->req.writer_stack into Curl_client_write()
- move definitions from content_encoding.h to sendf.h - move create/cleanup/add code into sendf.c - installed content_encoding writers will always be called on Curl_client_write(CLIENTWRITE_BODY) - Curl_client_cleanup() frees writers and tempbuffers from paused transfers, irregardless of protocol Closes #11908
This commit is contained in:
parent
d39863d27a
commit
0bd9e137e3
10 changed files with 205 additions and 182 deletions
|
|
@ -700,19 +700,15 @@ static CURLcode readwrite_data(struct Curl_easy *data,
|
|||
in http_chunks.c.
|
||||
Make sure that ALL_CONTENT_ENCODINGS contains all the
|
||||
encodings handled here. */
|
||||
if(data->set.http_ce_skip || !k->writer_stack) {
|
||||
if(!k->ignorebody && nread) {
|
||||
if(!k->ignorebody && nread) {
|
||||
#ifndef CURL_DISABLE_POP3
|
||||
if(conn->handler->protocol & PROTO_FAMILY_POP3)
|
||||
result = Curl_pop3_write(data, k->str, nread);
|
||||
else
|
||||
if(conn->handler->protocol & PROTO_FAMILY_POP3)
|
||||
result = Curl_pop3_write(data, k->str, nread);
|
||||
else
|
||||
#endif /* CURL_DISABLE_POP3 */
|
||||
result = Curl_client_write(data, CLIENTWRITE_BODY, k->str,
|
||||
nread);
|
||||
}
|
||||
result = Curl_client_write(data, CLIENTWRITE_BODY, k->str,
|
||||
nread);
|
||||
}
|
||||
else if(!k->ignorebody && nread)
|
||||
result = Curl_unencode_write(data, k->writer_stack, k->str, nread);
|
||||
}
|
||||
k->badheader = HEADER_NORMAL; /* taken care of now */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue