From cf6ba06cd445f1f4554701637d5bab581acfba98 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Mon, 21 Apr 2025 09:33:29 +0300 Subject: libcurl: update to 8.13.0 --- libs/libcurl/src/transfer.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'libs/libcurl/src/transfer.c') diff --git a/libs/libcurl/src/transfer.c b/libs/libcurl/src/transfer.c index 98385a6d3e..c8434592df 100644 --- a/libs/libcurl/src/transfer.c +++ b/libs/libcurl/src/transfer.c @@ -23,7 +23,6 @@ ***************************************************************************/ #include "curl_setup.h" -#include "strtoofft.h" #ifdef HAVE_NETINET_IN_H #include @@ -40,7 +39,9 @@ #ifdef HAVE_SYS_IOCTL_H #include #endif +#ifndef UNDER_CE #include +#endif #ifdef HAVE_SYS_PARAM_H #include @@ -571,8 +572,9 @@ CURLcode Curl_pretransfer(struct Curl_easy *data) data->state.followlocation = 0; /* reset the location-follow counter */ data->state.this_is_a_follow = FALSE; /* reset this */ data->state.errorbuf = FALSE; /* no error has occurred */ - data->state.httpwant = data->set.httpwant; - data->state.httpversion = 0; +#ifndef CURL_DISABLE_HTTP + Curl_http_neg_init(data, &data->state.http_neg); +#endif data->state.authproblem = FALSE; data->state.authhost.want = data->set.httpauth; data->state.authproxy.want = data->set.proxyauth; @@ -654,7 +656,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data) * protocol. */ if(data->set.str[STRING_USERAGENT]) { - Curl_safefree(data->state.aptr.uagent); + free(data->state.aptr.uagent); data->state.aptr.uagent = aprintf("User-Agent: %s\r\n", data->set.str[STRING_USERAGENT]); if(!data->state.aptr.uagent) @@ -880,6 +882,11 @@ CURLcode Curl_xfer_write_resp(struct Curl_easy *data, return result; } +bool Curl_xfer_write_is_paused(struct Curl_easy *data) +{ + return Curl_cwriter_is_paused(data); +} + CURLcode Curl_xfer_write_resp_hd(struct Curl_easy *data, const char *hd0, size_t hdlen, bool is_eos) { -- cgit v1.2.3