aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-06-23 13:41:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-06-23 13:41:06 +0000
commit85ef94ba857237882c7e68dea87a1dbc68a38fe7 (patch)
tree1bc05e18adaabc75f91f1c7b34c7358e60b0efdc /src/core/ngx_string.c
parent2e87bb645af1d3152c9961d49ca093d4cbfe630d (diff)
downloadnginx-85ef94ba857237882c7e68dea87a1dbc68a38fe7.tar.gz
nginx-85ef94ba857237882c7e68dea87a1dbc68a38fe7.zip
nginx-0.1.37-RELEASE importrelease-0.1.37
*) Change: now the "\n" is added to the end of the "nginx.pid" file. *) Bugfix: the responses may be transferred not completely, if many parts or the big parts were included by SSI. *) Bugfix: if all backends had returned the 404 reponse and the "http_404" parameter of the "proxy_next_upstream" or "fastcgi_next_upstream" directives was used, then nginx started to request all backends again.
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r--src/core/ngx_string.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c
index 9cbf3c92a..e21a9fcdd 100644
--- a/src/core/ngx_string.c
+++ b/src/core/ngx_string.c
@@ -62,6 +62,7 @@ ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src)
* %V pointer to ngx_str_t
* %s null-terminated string
* %Z '\0'
+ * %N '\n'
* %c char
* %% %
*
@@ -315,6 +316,15 @@ ngx_vsnprintf(u_char *buf, size_t max, const char *fmt, va_list args)
continue;
+ case 'N':
+#if (NGX_WIN32)
+ *buf++ = CR;
+#endif
+ *buf++ = LF;
+ fmt++;
+
+ continue;
+
case '%':
*buf++ = '%';
fmt++;