@ -246,12 +246,12 @@ static int process_line(URLContext *h, char *line, int line_count,
p + + ;
p + + ;
while ( isspace ( * p ) )
while ( isspace ( * p ) )
p + + ;
p + + ;
if ( ! strcmp ( tag , " Location " ) ) {
if ( ! strcasec mp ( tag , " Location " ) ) {
strcpy ( s - > location , p ) ;
strcpy ( s - > location , p ) ;
* new_location = 1 ;
* new_location = 1 ;
} else if ( ! strcmp ( tag , " Content-Length " ) & & s - > filesize = = - 1 ) {
} else if ( ! strcasec mp ( tag , " Content-Length " ) & & s - > filesize = = - 1 ) {
s - > filesize = atoll ( p ) ;
s - > filesize = atoll ( p ) ;
} else if ( ! strcmp ( tag , " Content-Range " ) ) {
} else if ( ! strcasec mp ( tag , " Content-Range " ) ) {
/* "bytes $from-$to/$document_size" */
/* "bytes $from-$to/$document_size" */
const char * slash ;
const char * slash ;
if ( ! strncmp ( p , " bytes " , 6 ) ) {
if ( ! strncmp ( p , " bytes " , 6 ) ) {
@ -261,14 +261,14 @@ static int process_line(URLContext *h, char *line, int line_count,
s - > filesize = atoll ( slash + 1 ) ;
s - > filesize = atoll ( slash + 1 ) ;
}
}
h - > is_streamed = 0 ; /* we _can_ in fact seek */
h - > is_streamed = 0 ; /* we _can_ in fact seek */
} else if ( ! strcmp ( tag , " Transfer-Encoding " ) & & ! strncasecmp ( p , " chunked " , 7 ) ) {
} else if ( ! strcasec mp ( tag , " Transfer-Encoding " ) & & ! strncasecmp ( p , " chunked " , 7 ) ) {
s - > filesize = - 1 ;
s - > filesize = - 1 ;
s - > chunksize = 0 ;
s - > chunksize = 0 ;
} else if ( ! strcmp ( tag , " WWW-Authenticate " ) ) {
} else if ( ! strcasec mp ( tag , " WWW-Authenticate " ) ) {
ff_http_auth_handle_header ( & s - > auth_state , tag , p ) ;
ff_http_auth_handle_header ( & s - > auth_state , tag , p ) ;
} else if ( ! strcmp ( tag , " Authentication-Info " ) ) {
} else if ( ! strcasec mp ( tag , " Authentication-Info " ) ) {
ff_http_auth_handle_header ( & s - > auth_state , tag , p ) ;
ff_http_auth_handle_header ( & s - > auth_state , tag , p ) ;
} else if ( ! strcmp ( tag , " Connection " ) ) {
} else if ( ! strcasec mp ( tag , " Connection " ) ) {
if ( ! strcmp ( p , " close " ) )
if ( ! strcmp ( p , " close " ) )
s - > willclose = 1 ;
s - > willclose = 1 ;
}
}