mirror of
https://github.com/curl/curl.git
synced 2026-08-04 20:16:15 +03:00
now counts header size return from server and if nothing is returned from a
HTTP server we return error
This commit is contained in:
parent
74d5a6fb3b
commit
4e37187e44
4 changed files with 13 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 2001, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* In order to be useful for every potential user, curl and libcurl are
|
||||
* dual-licensed under the MPL and the MIT/X-derivate licenses.
|
||||
|
|
@ -450,12 +450,14 @@ Transfer(struct connectdata *c_conn)
|
|||
if (data->set.http_include_header)
|
||||
writetype |= CLIENTWRITE_BODY;
|
||||
|
||||
urg = Curl_client_write(data, writetype, data->state.headerbuff,
|
||||
urg = Curl_client_write(data, writetype,
|
||||
data->state.headerbuff,
|
||||
p - data->state.headerbuff);
|
||||
if(urg)
|
||||
return urg;
|
||||
|
||||
data->info.header_size += p - data->state.headerbuff;
|
||||
conn->headerbytecount += p - data->state.headerbuff;
|
||||
|
||||
if(!header) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue