From 4e2074dcb51490a019b1acbb50c032207042357a Mon Sep 17 00:00:00 2001 From: The-EDev Date: Fri, 11 Feb 2022 01:04:32 +0300 Subject: [PATCH] ran clang-format --- include/crow/parser.h | 8 ++++---- include/crow/utility.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/crow/parser.h b/include/crow/parser.h index e038f2408..4f275a7ac 100644 --- a/include/crow/parser.h +++ b/include/crow/parser.h @@ -154,13 +154,13 @@ namespace crow // HTTP1.1 = always send keep_alive, HTTP1.0 = only send if header exists, HTTP?.? = never send keep_alive = (http_major == 1 && http_minor == 0) ? - ((flags & F_CONNECTION_KEEP_ALIVE) ? true : false) : - ((http_major == 1 && http_minor == 1) ? true : false); + ((flags & F_CONNECTION_KEEP_ALIVE) ? true : false) : + ((http_major == 1 && http_minor == 1) ? true : false); // HTTP1.1 = only close if close header exists, HTTP1.0 = always close unless keep_alive header exists, HTTP?.?= never close close_connection = (http_major == 1 && http_minor == 0) ? - ((flags & F_CONNECTION_KEEP_ALIVE) ? false : true) : - ((http_major == 1 && http_minor == 1) ? ((flags & F_CONNECTION_CLOSE) ? true : false) : false); + ((flags & F_CONNECTION_KEEP_ALIVE) ? false : true) : + ((http_major == 1 && http_minor == 1) ? ((flags & F_CONNECTION_CLOSE) ? true : false) : false); } /// Take the parsed HTTP request data and convert it to a \ref crow.request diff --git a/include/crow/utility.h b/include/crow/utility.h index 223586e3e..17a6bc6e0 100644 --- a/include/crow/utility.h +++ b/include/crow/utility.h @@ -702,8 +702,8 @@ namespace crow data[i] = replacement; } else if ((c == '/') || (c == '\\')) - { - if (CROW_UNLIKELY( i == 0 )) //Prevent Unix Absolute Paths (Windows Absolute Paths are prevented with `(c == ':')`) + { + if (CROW_UNLIKELY(i == 0)) //Prevent Unix Absolute Paths (Windows Absolute Paths are prevented with `(c == ':')`) { data[i] = replacement; } @@ -711,9 +711,9 @@ namespace crow { checkForSpecialEntries = true; } - } } } + } } // namespace utility } // namespace crow