nginx-0.1.3-RELEASE import
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c
index 8e4e09a..390ca43 100644
--- a/src/core/ngx_string.c
+++ b/src/core/ngx_string.c
@@ -41,6 +41,7 @@
* %[0][width]ui ngx_uint_t
* %[0][width]uxi ngx_uint_t in hex
* %s null-terminated string
+ * %c char
* %% %
*
*/
@@ -223,6 +224,13 @@
continue;
+ case 'c':
+ d = va_arg(arg, int);
+ *buf++ = (u_char) (d & 0xff);
+ fmt++;
+
+ continue;
+
case '%':
*buf++ = '%';
fmt++;