mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Curl_http_readwrite_headers: minor indent fix
This commit is contained in:
parent
3e16c3e73e
commit
bcf50283fc
12
lib/http.c
12
lib/http.c
@ -2929,23 +2929,23 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
|
|||||||
|
|
||||||
if(conn->handler->protocol & CURLPROTO_HTTP) {
|
if(conn->handler->protocol & CURLPROTO_HTTP) {
|
||||||
nc = sscanf(HEADER1,
|
nc = sscanf(HEADER1,
|
||||||
" HTTP/%d.%d %3d",
|
" HTTP/%d.%d %3d",
|
||||||
&httpversion_major,
|
&httpversion_major,
|
||||||
&conn->httpversion,
|
&conn->httpversion,
|
||||||
&k->httpcode);
|
&k->httpcode);
|
||||||
if(nc==3) {
|
if(nc==3) {
|
||||||
conn->httpversion += 10 * httpversion_major;
|
conn->httpversion += 10 * httpversion_major;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* this is the real world, not a Nirvana
|
/* this is the real world, not a Nirvana
|
||||||
NCSA 1.5.x returns this crap when asked for HTTP/1.1
|
NCSA 1.5.x returns this crap when asked for HTTP/1.1
|
||||||
*/
|
*/
|
||||||
nc=sscanf(HEADER1, " HTTP %3d", &k->httpcode);
|
nc=sscanf(HEADER1, " HTTP %3d", &k->httpcode);
|
||||||
conn->httpversion = 10;
|
conn->httpversion = 10;
|
||||||
|
|
||||||
/* If user has set option HTTP200ALIASES,
|
/* If user has set option HTTP200ALIASES,
|
||||||
compare header line against list of aliases
|
compare header line against list of aliases
|
||||||
*/
|
*/
|
||||||
if(!nc) {
|
if(!nc) {
|
||||||
if(checkhttpprefix(data, k->p)) {
|
if(checkhttpprefix(data, k->p)) {
|
||||||
nc = 1;
|
nc = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user