Skip to content

Commit 974e45f

Browse files
committed
default error page
1 parent df4d044 commit 974e45f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.

server/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>42 Webserv</title>
5-
<link rel="icon" href="/favicon.ico"/>
5+
<link rel="icon" href="favicon.ico"/>
66
<style>
77
.title {
88
text-align : center;

src/CGIResponseError.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void CGIResponseError::set_head_only(bool only) {
1212

1313
void CGIResponseError::setBody(int error_code, std::string &body)
1414
{
15-
std::string _default_error_file("../server/error.html");
15+
std::string _default_error_file("../error.html");
1616

1717
std::map<int, std::string>::iterator it = _error_pages.find(error_code);
1818
if (it != _error_pages.end())

0 commit comments

Comments
 (0)