mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Make indentation consistent before doing other work
svn path=/trunk/httpp/; revision=4250
This commit is contained in:
parent
c6e4268872
commit
3a0b895baa
@ -136,8 +136,7 @@ int httpp_parse_response(http_parser_t *parser, char *http_data, unsigned long l
|
||||
lines = split_headers(data, len, line);
|
||||
|
||||
/* In this case, the first line contains:
|
||||
* VERSION RESPONSE_CODE MESSAGE, such as
|
||||
* HTTP/1.0 200 OK
|
||||
* VERSION RESPONSE_CODE MESSAGE, such as HTTP/1.0 200 OK
|
||||
*/
|
||||
slen = strlen(line[0]);
|
||||
version = line[0];
|
||||
@ -145,8 +144,7 @@ int httpp_parse_response(http_parser_t *parser, char *http_data, unsigned long l
|
||||
if(line[0][i] == ' ') {
|
||||
line[0][i] = 0;
|
||||
whitespace = 1;
|
||||
}
|
||||
else if(whitespace) {
|
||||
} else if(whitespace) {
|
||||
whitespace = 0;
|
||||
where++;
|
||||
if(where == 1)
|
||||
@ -255,9 +253,8 @@ static void parse_query(http_parser_t *parser, char *query)
|
||||
switch(query[i]) {
|
||||
case '&':
|
||||
query[i] = 0;
|
||||
if(val && key) {
|
||||
if(val && key)
|
||||
httpp_set_query_param(parser, key, val);
|
||||
}
|
||||
key = query+i+1;
|
||||
break;
|
||||
case '=':
|
||||
@ -342,8 +339,7 @@ int httpp_parse(http_parser_t *parser, char *http_data, unsigned long len)
|
||||
parser->req_type = httpp_req_unknown;
|
||||
}
|
||||
|
||||
if (uri != NULL && strlen(uri) > 0)
|
||||
{
|
||||
if (uri != NULL && strlen(uri) > 0) {
|
||||
char *query;
|
||||
if((query = strchr(uri, '?')) != NULL) {
|
||||
*query = 0;
|
||||
@ -352,8 +348,7 @@ int httpp_parse(http_parser_t *parser, char *http_data, unsigned long len)
|
||||
}
|
||||
|
||||
parser->uri = strdup(uri);
|
||||
}
|
||||
else
|
||||
} else
|
||||
parser->uri = NULL;
|
||||
|
||||
if ((version != NULL) && ((tmp = strchr(version, '/')) != NULL)) {
|
||||
|
Loading…
Reference in New Issue
Block a user