Skip to content

Commit

Permalink
Fix color for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Nov 9, 2020
1 parent 65f4c41 commit 2c0ac4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miniserv.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ sub handle_request
&reset_byte_count();
&write_data("<html>\n");
&write_data("<head><title>Unauthorized</title></head>\n");
&write_data("<body><h2 style='color: crimson; margin-bottom: -8px;'>Unauthorized</h2>\n");
&write_data("<body><h2 style='color: #de0000; margin-bottom: -8px;'>Unauthorized</h2>\n");
&write_data("A password is required to access this\n");
&write_data("web server. Please try again. <p>\n");
&write_data("</body></html>\n");
Expand Down Expand Up @@ -2345,7 +2345,7 @@ sub handle_request
&write_keep_alive(0);
&write_data("\r\n");
&reset_byte_count();
&write_data("<h2 style='color: crimson; margin-bottom: -8px;'>Index of $simple</h2>\n");
&write_data("<h2 style='color: #de0000; margin-bottom: -8px;'>Index of $simple</h2>\n");
&write_data("<pre>\n");
&write_data(sprintf "%-35.35s %-20.20s %-10.10s\n",
"Name", "Last Modified", "Size");
Expand Down Expand Up @@ -2761,7 +2761,7 @@ sub http_error
&write_keep_alive(0);
&write_data("\r\n");
&reset_byte_count();
&write_data("<h2 style='color: crimson; margin-bottom: -8px;'>Error - $msg</h2>\n");
&write_data("<h2 style='color: #de0000; margin-bottom: -8px;'>Error - $msg</h2>\n");
if ($body) {
&write_data("<p>$body</p>\n");
}
Expand Down

0 comments on commit 2c0ac4f

Please sign in to comment.