Changeset 1528
- Timestamp:
- 01/27/2007 02:14:55 PM (1 year ago)
- Files:
-
- trunk/src/array.h (modified) (1 diff)
- trunk/src/configfile-glue.c (modified) (4 diffs)
- trunk/src/configparser.y (modified) (1 diff)
- trunk/src/response.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/array.h
r1526 r1528 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_REMOTEIP, 92 COMP_HTTP_QUERYSTRING 91 COMP_HTTP_REMOTE_IP, 92 COMP_HTTP_QUERY_STRING, 93 COMP_HTTP_REQUEST_METHOD, 94 COMP_PHYSICAL_PATH 93 95 } comp_key_t; 94 96 trunk/src/configfile-glue.c
r1526 r1528 280 280 break; 281 281 } 282 case COMP_HTTP_REMOTE IP: {282 case COMP_HTTP_REMOTE_IP: { 283 283 char *nm_slash; 284 284 /* handle remoteip limitations … … 355 355 break; 356 356 357 case COMP_HTTP_QUERY STRING:357 case COMP_HTTP_QUERY_STRING: 358 358 l = con->uri.query; 359 359 break; … … 382 382 break; 383 383 } 384 case COMP_HTTP_USER AGENT: {384 case COMP_HTTP_USER_AGENT: { 385 385 data_string *ds; 386 386 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, CONST_STR_LEN("User-Agent")))) { … … 391 391 break; 392 392 } 393 393 case COMP_HTTP_REQUEST_METHOD: { 394 const char *method = get_http_method_name(con->request.http_method); 395 396 /* we only have the request method as const char but we need a buffer for comparing */ 397 398 buffer_copy_string(srv->tmp_buf, method); 399 400 l = srv->tmp_buf; 401 402 break; 403 } 404 case COMP_PHYSICAL_PATH: { 405 l = con->physical.path; 406 break; 407 } 394 408 default: 395 409 return COND_RESULT_FALSE; trunk/src/configparser.y
r1526 r1528 420 420 { COMP_HTTP_HOST, CONST_STR_LEN("HTTP[\"host\"]" ) }, 421 421 { COMP_HTTP_REFERER, CONST_STR_LEN("HTTP[\"referer\"]" ) }, 422 { COMP_HTTP_USERAGENT, CONST_STR_LEN("HTTP[\"useragent\"]" ) }, 422 { COMP_HTTP_USER_AGENT, CONST_STR_LEN("HTTP[\"useragent\"]" ) }, 423 { COMP_HTTP_USER_AGENT, CONST_STR_LEN("HTTP[\"user-agent\"]" ) }, 423 424 { COMP_HTTP_COOKIE, CONST_STR_LEN("HTTP[\"cookie\"]" ) }, 424 { COMP_HTTP_REMOTEIP, CONST_STR_LEN("HTTP[\"remoteip\"]" ) }, 425 { COMP_HTTP_QUERYSTRING, CONST_STR_LEN("HTTP[\"querystring\"]") }, 425 { COMP_HTTP_REMOTE_IP, CONST_STR_LEN("HTTP[\"remoteip\"]" ) }, 426 { COMP_HTTP_REMOTE_IP, CONST_STR_LEN("HTTP[\"remote-ip\"]" ) }, 427 { COMP_HTTP_QUERY_STRING, CONST_STR_LEN("HTTP[\"querystring\"]") }, 428 { COMP_HTTP_QUERY_STRING, CONST_STR_LEN("HTTP[\"query-string\"]") }, 429 { COMP_HTTP_REQUEST_METHOD, CONST_STR_LEN("HTTP[\"request-method\"]") }, 430 { COMP_PHYSICAL_PATH, CONST_STR_LEN("PHYSICAL[\"path\"]") }, 426 431 { COMP_UNSET, NULL, 0 }, 427 432 }; trunk/src/response.c
r1503 r1528 188 188 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_QUERY STRING); /* HTTPqs */279 config_patch_connection(srv, con, COMP_HTTP_QUERY_STRING); /* HTTPqs */ 280 280 281 281 /* do we have to downgrade to 1.0 ? */ … … 629 629 } 630 630 631 config_patch_connection(srv, con, COMP_PHYSICAL_PATH); /* physical-path */ 632 631 633 if (con->conf.log_request_handling) { 632 634 log_error_write(srv, __FILE__, __LINE__, "s", "-- handling subrequest");

