Mercurial > hg > nginx
comparison src/http/modules/ngx_http_rewrite_module.c @ 507:cd3117ad9aab release-0.1.28
nginx-0.1.28-RELEASE import
*) Bugfix: nginx hogs CPU while proxying the huge files.
*) Bugfix: nginx could not be built by gcc 4.0 on Linux.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 08 Apr 2005 15:18:55 +0000 |
parents | ee66921ecd47 |
children | 9b8c906f6e63 |
comparison
equal
deleted
inserted
replaced
506:005e65646622 | 507:cd3117ad9aab |
---|---|
1019 regex->status = 0; | 1019 regex->status = 0; |
1020 regex->test = 0; | 1020 regex->test = 0; |
1021 regex->uri = 1; | 1021 regex->uri = 1; |
1022 regex->args = 1; | 1022 regex->args = 1; |
1023 regex->redirect = 0; | 1023 regex->redirect = 0; |
1024 regex->break_cycle = 0; | |
1024 regex->name = value[1]; | 1025 regex->name = value[1]; |
1025 | 1026 |
1026 last = 0; | 1027 last = 0; |
1027 | 1028 |
1028 if (ngx_strncmp(value[2].data, "http://", sizeof("http://") - 1) == 0) { | 1029 if (ngx_strncmp(value[2].data, "http://", sizeof("http://") - 1) == 0) { |
1464 regex->next = sizeof(ngx_http_rewrite_regex_code_t); | 1465 regex->next = sizeof(ngx_http_rewrite_regex_code_t); |
1465 regex->test = 1; | 1466 regex->test = 1; |
1466 regex->uri = 0; | 1467 regex->uri = 0; |
1467 regex->args = 0; | 1468 regex->args = 0; |
1468 regex->redirect = 0; | 1469 regex->redirect = 0; |
1470 regex->break_cycle = 0; | |
1469 regex->name = value[last]; | 1471 regex->name = value[last]; |
1470 | 1472 |
1471 return NGX_CONF_OK; | 1473 return NGX_CONF_OK; |
1472 } | 1474 } |
1473 | 1475 |