mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
url: make sure pushed streams get an allocated download buffer
Follow-up to c4e6968127
When a new transfer is created, as a resuly of an acknowledged push,
that transfer needs a download buffer allocated.
Closes #5590
This commit is contained in:
parent
abbc5d6044
commit
ff1c37cbe3
3 changed files with 11 additions and 4 deletions
|
|
@ -3981,6 +3981,11 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn)
|
|||
{
|
||||
struct SingleRequest *k = &data->req;
|
||||
|
||||
/* if this is a pushed stream, we need this: */
|
||||
CURLcode result = Curl_preconnect(data);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
if(conn) {
|
||||
conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to
|
||||
use */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue