aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-09 15:40:48 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-09 15:40:48 +0000
commit2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f (patch)
tree50dd328ad6dbd0d9a22a561f2f335ebfe098f1d0 /src/http/ngx_http_parse.c
parent0d9da9b6c3c4842eade3034e6e1f3ea140d08d6d (diff)
downloadnginx-2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f.tar.gz
nginx-2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f.zip
nginx-0.0.10-2004-09-09-19:40:48 import
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r--src/http/ngx_http_parse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 8136f31d3..dd2d3749a 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -65,19 +65,19 @@ ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r)
if (r->method_end - m == 3) {
- if (*m == 'G' && *(m + 1) == 'E' && *(m + 2) == 'T') {
+ if (m[0] == 'G' && m[1] == 'E' && m[2] == 'T') {
r->method = NGX_HTTP_GET;
}
} else if (r->method_end - m == 4) {
- if (*m == 'P' && *(m + 1) == 'O'
- && *(m + 2) == 'T' && *(m + 3) == 'T')
+ if (m[0] == 'P' && m[1] == 'O'
+ && m[2] == 'T' && m[3] == 'T')
{
r->method = NGX_HTTP_POST;
- } else if (*m == 'H' && *(m + 1) == 'E'
- && *(m + 2) == 'A' && *(m + 3) == 'D')
+ } else if (m[0] == 'H' && m[1] == 'E'
+ && m[2] == 'A' && m[3] == 'D')
{
r->method = NGX_HTTP_HEAD;
}