]> git.kaiwu.me - nginx.git/commitdiff
Style: use %N instead of '\n' where appropriate.
authorRuslan Ermilov <ru@nginx.com>
Wed, 14 May 2014 18:26:30 +0000 (22:26 +0400)
committerRuslan Ermilov <ru@nginx.com>
Wed, 14 May 2014 18:26:30 +0000 (22:26 +0400)
src/http/modules/ngx_http_proxy_module.c
src/mail/ngx_mail_auth_http_module.c

index ed596f8623e43fb5e37f02d232000e72cd1c98cf..61af3dfd3412d24a8b810b866029b1bb12c92455 100644 (file)
@@ -1294,7 +1294,7 @@ ngx_http_proxy_create_request(ngx_http_request_t *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) {
index 8094bbc5cc728e183560d9057b33a9481c064587..eb7531c80a3d48a495e6bdfb02661cb45056729f 100644 (file)
@@ -1269,7 +1269,7 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
     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