Changeset 2112
- Timestamp:
- 03/02/2008 11:46:44 AM (6 months ago)
- Location:
- branches/lighttpd-1.4.x/src
- Files:
-
- 4 modified
-
array.h (modified) (1 diff)
-
configfile-glue.c (modified) (4 diffs)
-
configparser.y (modified) (1 diff)
-
response.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.4.x/src/array.h
r2012 r2112 87 87 COMP_HTTP_HOST, 88 88 COMP_HTTP_REFERER, 89 COMP_HTTP_USER AGENT,89 COMP_HTTP_USER_AGENT, 90 90 COMP_HTTP_COOKIE, 91 COMP_HTTP_REMOTE IP,92 COMP_HTTP_QUERY STRING,91 COMP_HTTP_REMOTE_IP, 92 COMP_HTTP_QUERY_STRING, 93 93 COMP_HTTP_SCHEME, 94 COMP_HTTP_REQUEST_METHOD, 94 95 95 96 COMP_LAST_ELEMENT -
branches/lighttpd-1.4.x/src/configfile-glue.c
r2012 r2112 278 278 break; 279 279 } 280 case COMP_HTTP_REMOTE IP: {280 case COMP_HTTP_REMOTE_IP: { 281 281 char *nm_slash; 282 282 /* handle remoteip limitations … … 350 350 break; 351 351 352 case COMP_HTTP_QUERY STRING:352 case COMP_HTTP_QUERY_STRING: 353 353 l = con->uri.query; 354 354 break; … … 377 377 break; 378 378 } 379 case COMP_HTTP_USER AGENT: {379 case COMP_HTTP_USER_AGENT: { 380 380 data_string *ds; 381 381 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "User-Agent"))) { … … 386 386 break; 387 387 } 388 388 case COMP_HTTP_REQUEST_METHOD: { 389 const char *method = get_http_method_name(con->request.http_method); 390 391 /* we only have the request method as const char but we need a buffer for comparing */ 392 393 buffer_copy_string(srv->tmp_buf, method); 394 395 l = srv->tmp_buf; 396 397 break; 398 } 389 399 default: 390 400 return COND_RESULT_FALSE; -
branches/lighttpd-1.4.x/src/configparser.y
r2102 r2112 422 422 { COMP_HTTP_HOST, CONST_STR_LEN("HTTP[\"host\"]" ) }, 423 423 { COMP_HTTP_REFERER, CONST_STR_LEN("HTTP[\"referer\"]" ) }, 424 { COMP_HTTP_USERAGENT, CONST_STR_LEN("HTTP[\"useragent\"]" ) }, 424 { COMP_HTTP_USER_AGENT, CONST_STR_LEN("HTTP[\"useragent\"]" ) }, 425 { COMP_HTTP_USER_AGENT, CONST_STR_LEN("HTTP[\"user-agent\"]" ) }, 425 426 { COMP_HTTP_COOKIE, CONST_STR_LEN("HTTP[\"cookie\"]" ) }, 426 { COMP_HTTP_REMOTEIP, CONST_STR_LEN("HTTP[\"remoteip\"]" ) }, 427 { COMP_HTTP_QUERYSTRING, CONST_STR_LEN("HTTP[\"querystring\"]") }, 427 { COMP_HTTP_REMOTE_IP, CONST_STR_LEN("HTTP[\"remoteip\"]" ) }, 428 { COMP_HTTP_REMOTE_IP, CONST_STR_LEN("HTTP[\"remote-ip\"]" ) }, 429 { COMP_HTTP_QUERY_STRING, CONST_STR_LEN("HTTP[\"querystring\"]") }, 430 { COMP_HTTP_QUERY_STRING, CONST_STR_LEN("HTTP[\"query-string\"]") }, 431 { COMP_HTTP_REQUEST_METHOD, CONST_STR_LEN("HTTP[\"request-method\"]") }, 428 432 { COMP_HTTP_SCHEME, CONST_STR_LEN("HTTP[\"scheme\"]" ) }, 429 433 { COMP_UNSET, NULL, 0 }, -
branches/lighttpd-1.4.x/src/response.c
r2095 r2112 188 188 config_patch_connection(srv, con, COMP_HTTP_SCHEME); /* Scheme: */ 189 189 config_patch_connection(srv, con, COMP_HTTP_HOST); /* Host: */ 190 config_patch_connection(srv, con, COMP_HTTP_REMOTE IP);/* Client-IP */190 config_patch_connection(srv, con, COMP_HTTP_REMOTE_IP); /* Client-IP */ 191 191 config_patch_connection(srv, con, COMP_HTTP_REFERER); /* Referer: */ 192 config_patch_connection(srv, con, COMP_HTTP_USER AGENT);/* User-Agent: */192 config_patch_connection(srv, con, COMP_HTTP_USER_AGENT);/* User-Agent: */ 193 193 config_patch_connection(srv, con, COMP_HTTP_COOKIE); /* Cookie: */ 194 194 … … 277 277 278 278 config_patch_connection(srv, con, COMP_HTTP_URL); /* HTTPurl */ 279 config_patch_connection(srv, con, COMP_HTTP_QUERYSTRING); /* HTTPqs */280 279 281 280 /* do we have to downgrade to 1.0 ? */

