mirror of
https://github.com/curl/curl.git
synced 2026-07-28 11:53:05 +03:00
http: move headers collecting to writer
- add a client writer that does "push" response headers written to the client if the headers api is enabled - remove special handling in sendf.c - needs to be installed very early on connection setup to catch CONNECT response headers Closes #12880
This commit is contained in:
parent
5b41fac587
commit
2abfa3833b
6 changed files with 90 additions and 19 deletions
|
|
@ -73,6 +73,7 @@
|
|||
#include "hostip.h"
|
||||
#include "dynhds.h"
|
||||
#include "http.h"
|
||||
#include "headers.h"
|
||||
#include "select.h"
|
||||
#include "parsedate.h" /* for the week day and month names */
|
||||
#include "strtoofft.h"
|
||||
|
|
@ -3131,6 +3132,13 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
|
|||
break;
|
||||
}
|
||||
|
||||
/* Add collecting of headers written to client. For a new connection,
|
||||
* we might have done that already, but reuse
|
||||
* or multiplex needs it here as well. */
|
||||
result = Curl_headers_init(data);
|
||||
if(result)
|
||||
goto fail;
|
||||
|
||||
http = data->req.p.http;
|
||||
DEBUGASSERT(http);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue