From 914d4cb0c03715d888ae4b6c8970499e7df123de Mon Sep 17 00:00:00 2001 From: LuckyLaszlo Date: Fri, 5 Aug 2022 04:44:23 +0200 Subject: [PATCH] HTML_ERROR Macro reformat --- srcs/webserv/http_status.hpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/srcs/webserv/http_status.hpp b/srcs/webserv/http_status.hpp index c53170d..8aa513a 100644 --- a/srcs/webserv/http_status.hpp +++ b/srcs/webserv/http_status.hpp @@ -12,7 +12,18 @@ // # define HTML_ERROR(STATUS) "\r\n"STATUS"

"STATUS"


Le Webserv/0.1

" # define STATUS_PLACEHOLDER "$STATUS" -# define HTML_ERROR "" STATUS_PLACEHOLDER "

" STATUS_PLACEHOLDER "


Le Webserv/0.1

" +# define HTML_ERROR \ +""\ +""\ +""\ + "" STATUS_PLACEHOLDER ""\ +""\ +""\ + "

" STATUS_PLACEHOLDER "

"\ + "
"\ + "

Le Webserv/0.1

"\ +""\ +"" // When new status added, need to update _init_http_status_map() # define S200 "200 OK"