[nginx] Core: use '\r' for CR and '\n' for LF definitions.
Ruslan Ermilov
ru at nginx.com
Wed May 14 18:28:04 UTC 2014
details: http://hg.nginx.org/nginx/rev/bc98b0f11bdd
branches:
changeset: 5684:bc98b0f11bdd
user: Ruslan Ermilov <ru at nginx.com>
date: Wed May 14 22:26:05 2014 +0400
description:
Core: use '\r' for CR and '\n' for LF definitions.
diffstat:
src/core/ngx_core.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 48c97d83ab7f -r bc98b0f11bdd src/core/ngx_core.h
--- a/src/core/ngx_core.h Tue Apr 29 22:22:38 2014 +0200
+++ b/src/core/ngx_core.h Wed May 14 22:26:05 2014 +0400
@@ -80,9 +80,9 @@ typedef void (*ngx_connection_handler_pt
#include <ngx_proxy_protocol.h>
-#define LF (u_char) 10
-#define CR (u_char) 13
-#define CRLF "\x0d\x0a"
+#define LF (u_char) '\n'
+#define CR (u_char) '\r'
+#define CRLF "\r\n"
#define ngx_abs(value) (((value) >= 0) ? (value) : - (value))
More information about the nginx-devel
mailing list