summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-16 13:35:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-16 13:35:20 +0000
commit9c61095a30ed2b6bf051dacbbbd26ae2769d9e34 (patch)
treeb3552c24563e7343e796315e5daee1070f11fb51 /src/http/ngx_http_parse.c
parent10a543a810ac78eb5d754302b001debf9cd420c4 (diff)
downloadnginx-9c61095a30ed2b6bf051dacbbbd26ae2769d9e34.tar.gz
nginx-9c61095a30ed2b6bf051dacbbbd26ae2769d9e34.tar.bz2
nginx-0.0.3-2004-03-16-16:35:20 import
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_parse.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index c86024539..e1304e80f 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -458,7 +458,7 @@ ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_hunk_t *h)
state = sw_name;
r->header_name_start = p - 1;
- c = (char) (ch | 0x20);
+ c = (u_char) (ch | 0x20);
if (c >= 'a' && c <= 'z') {
break;
}
@@ -778,15 +778,15 @@ ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r)
case sw_quoted:
if (ch >= '0' && ch <= '9') {
- decoded = (char) (ch - '0');
+ decoded = (u_char) (ch - '0');
state = sw_quoted_second;
ch = *p++;
break;
}
- c = (char) (ch | 0x20);
+ c = (u_char) (ch | 0x20);
if (c >= 'a' && c <= 'f') {
- decoded = (char) (c - 'a' + 10);
+ decoded = (u_char) (c - 'a' + 10);
state = sw_quoted_second;
ch = *p++;
break;
@@ -796,7 +796,7 @@ ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r)
case sw_quoted_second:
if (ch >= '0' && ch <= '9') {
- ch = (char) ((decoded << 4) + ch - '0');
+ ch = (u_char) ((decoded << 4) + ch - '0');
if (ch == '%') {
state = sw_usual;
*u++ = ch;
@@ -807,9 +807,9 @@ ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r)
break;
}
- c = (char) (ch | 0x20);
+ c = (u_char) (ch | 0x20);
if (c >= 'a' && c <= 'f') {
- ch = (char) ((decoded << 4) + c - 'a' + 10);
+ ch = (u_char) ((decoded << 4) + c - 'a' + 10);
if (ch == '%') {
state = sw_usual;
*u++ = ch;