Welcome! Log In Create A New Profile

Advanced

[nginx] Style: use %N instead of '\n' where appropriate.

Ruslan Ermilov
May 14, 2014 02:30PM
details: http://hg.nginx.org/nginx/rev/0cbefdcf82a6
branches:
changeset: 5685:0cbefdcf82a6
user: Ruslan Ermilov <ru@nginx.com>
date: Wed May 14 22:26:30 2014 +0400
description:
Style: use %N instead of '\n' where appropriate.

diffstat:

src/http/modules/ngx_http_proxy_module.c | 2 +-
src/mail/ngx_mail_auth_http_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r bc98b0f11bdd -r 0cbefdcf82a6 src/http/modules/ngx_http_proxy_module.c
--- a/src/http/modules/ngx_http_proxy_module.c Wed May 14 22:26:05 2014 +0400
+++ b/src/http/modules/ngx_http_proxy_module.c Wed May 14 22:26:30 2014 +0400
@@ -1294,7 +1294,7 @@ ngx_http_proxy_create_request(ngx_http_r
}

ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "http proxy header:\n\"%*s\"",
+ "http proxy header:%N\"%*s\"",
(size_t) (b->last - b->pos), b->pos);

if (plcf->body_set == NULL && plcf->upstream.pass_request_body) {
diff -r bc98b0f11bdd -r 0cbefdcf82a6 src/mail/ngx_mail_auth_http_module.c
--- a/src/mail/ngx_mail_auth_http_module.c Wed May 14 22:26:05 2014 +0400
+++ b/src/mail/ngx_mail_auth_http_module.c Wed May 14 22:26:30 2014 +0400
@@ -1269,7 +1269,7 @@ ngx_mail_auth_http_create_request(ngx_ma
l.len = b->last - b->pos;
l.data = b->pos;
ngx_log_debug1(NGX_LOG_DEBUG_MAIL, s->connection->log, 0,
- "mail auth http header:\n\"%V\"", &l);
+ "mail auth http header:%N\"%V\"", &l);
}
#endif


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Style: use %N instead of '\n' where appropriate.

Ruslan Ermilov 533 May 14, 2014 02:30PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 241
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready