Mercurial > hg > nginx-vendor-0-7
comparison src/core/ngx_string.h @ 400:6ebbca3d5ed7 NGINX_0_7_12
nginx 0.7.12
*) Feature: the "server_name" directive supports empty name "".
*) Feature: the "gzip_disable" directive supports special "msie6" mask.
*) Bugfix: if the "max_fails=0" parameter was used in upstream with
several servers, then a worker process exited on a SIGFPE signal.
Thanks to Maxim Dounin.
*) Bugfix: a request body was dropped while redirection via an
"error_page" directive.
*) Bugfix: a full response was returned for request method HEAD while
redirection via an "error_page" directive.
*) Bugfix: the $r->header_in() method did not return value of the
"Host", "User-Agent", and "Connection" request header lines; the bug
had appeared in 0.7.0.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 26 Aug 2008 00:00:00 +0400 |
parents | 34fb3a573548 |
children | 09f0ef15d544 |
comparison
equal
deleted
inserted
replaced
399:59e324e4d6d3 | 400:6ebbca3d5ed7 |
---|---|
52 /* msvc and icc7 compile strcmp() to inline loop */ | 52 /* msvc and icc7 compile strcmp() to inline loop */ |
53 #define ngx_strcmp(s1, s2) strcmp((const char *) s1, (const char *) s2) | 53 #define ngx_strcmp(s1, s2) strcmp((const char *) s1, (const char *) s2) |
54 | 54 |
55 | 55 |
56 #define ngx_strstr(s1, s2) strstr((const char *) s1, (const char *) s2) | 56 #define ngx_strstr(s1, s2) strstr((const char *) s1, (const char *) s2) |
57 #define ngx_strlen(s) strlen((const char *) s) | |
58 | |
57 #define ngx_strchr(s1, c) strchr((const char *) s1, (int) c) | 59 #define ngx_strchr(s1, c) strchr((const char *) s1, (int) c) |
58 #define ngx_strlen(s) strlen((const char *) s) | 60 |
61 static ngx_inline u_char * | |
62 ngx_strlchr(u_char *p, u_char *last, u_char c) | |
63 { | |
64 while (p < last) { | |
65 | |
66 if (*p == c) { | |
67 return p; | |
68 } | |
69 | |
70 p++; | |
71 } | |
72 | |
73 return NULL; | |
74 } | |
59 | 75 |
60 | 76 |
61 /* | 77 /* |
62 * msvc and icc7 compile memset() to the inline "rep stos" | 78 * msvc and icc7 compile memset() to the inline "rep stos" |
63 * while ZeroMemory() and bzero() are the calls. | 79 * while ZeroMemory() and bzero() are the calls. |