version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2014/06/15 20:20:06
|
Line 43 static int request_check_hostname(server *srv, connect
|
Line 43 static int request_check_hostname(server *srv, connect
|
char *c = host->ptr + 1; |
char *c = host->ptr + 1; |
int colon_cnt = 0; |
int colon_cnt = 0; |
|
|
/* check portnumber */ | /* check the address inside [...] */ |
for (; *c && *c != ']'; c++) { |
for (; *c && *c != ']'; c++) { |
if (*c == ':') { |
if (*c == ':') { |
if (++colon_cnt > 7) { |
if (++colon_cnt > 7) { |
Line 67 static int request_check_hostname(server *srv, connect
|
Line 67 static int request_check_hostname(server *srv, connect
|
} |
} |
} |
} |
} |
} |
|
else if ('\0' != *(c+1)) { |
|
/* only a port is allowed to follow [...] */ |
|
return -1; |
|
} |
return 0; |
return 0; |
} |
} |
|
|
Line 1023 int http_request_parse(server *srv, connection *con) {
|
Line 1027 int http_request_parse(server *srv, connection *con) {
|
case '\t': |
case '\t': |
/* strip leading WS */ |
/* strip leading WS */ |
if (value == cur) value = cur+1; |
if (value == cur) value = cur+1; |
|
/* fallthrough */ |
default: |
default: |
if (*cur >= 0 && *cur < 32 && *cur != '\t') { |
if (*cur >= 0 && *cur < 32 && *cur != '\t') { |
if (srv->srvconf.log_request_header_on_error) { |
if (srv->srvconf.log_request_header_on_error) { |