HTML_ERROR Macro reformat
This commit is contained in:
@@ -12,7 +12,18 @@
|
|||||||
// # define HTML_ERROR(STATUS) "\r\n<!DOCTYPE html><html><head><title>"STATUS"</title></head><body><h1 style=\"text-align:center\">"STATUS"</h1><hr><p style=\"text-align:center\">Le Webserv/0.1</p></body></html>"
|
// # define HTML_ERROR(STATUS) "\r\n<!DOCTYPE html><html><head><title>"STATUS"</title></head><body><h1 style=\"text-align:center\">"STATUS"</h1><hr><p style=\"text-align:center\">Le Webserv/0.1</p></body></html>"
|
||||||
|
|
||||||
# define STATUS_PLACEHOLDER "$STATUS"
|
# define STATUS_PLACEHOLDER "$STATUS"
|
||||||
# define HTML_ERROR "<!DOCTYPE html><html><head><title>" STATUS_PLACEHOLDER "</title></head><body><h1 style=\"text-align:center\">" STATUS_PLACEHOLDER "</h1><hr><p style=\"text-align:center\">Le Webserv/0.1</p></body></html>"
|
# define HTML_ERROR \
|
||||||
|
"<!DOCTYPE html>"\
|
||||||
|
"<html>"\
|
||||||
|
"<head>"\
|
||||||
|
"<title>" STATUS_PLACEHOLDER "</title>"\
|
||||||
|
"</head>"\
|
||||||
|
"<body>"\
|
||||||
|
"<h1 style=\"text-align:center\">" STATUS_PLACEHOLDER "</h1>"\
|
||||||
|
"<hr>"\
|
||||||
|
"<p style=\"text-align:center\">Le Webserv/0.1</p>"\
|
||||||
|
"</body>"\
|
||||||
|
"</html>"
|
||||||
|
|
||||||
// When new status added, need to update _init_http_status_map()
|
// When new status added, need to update _init_http_status_map()
|
||||||
# define S200 "200 OK"
|
# define S200 "200 OK"
|
||||||
|
|||||||
Reference in New Issue
Block a user