From d9093ebefc65c18c25a2c8f20c508a449ac80ced Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 5 Jul 2020 14:41:59 -0700 Subject: [PATCH] Simplify an obsolete error message --- miniserv.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index 1a8b5cfb0..32de11ebd 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -1384,8 +1384,7 @@ elsif ($reqline !~ /^(\S+)\s+(.*)\s+HTTP\/1\..$/) { } else { # Throw an error &http_error(404, "Page not found", - "The requested URL was not found on this server ". - "try visiting the home page of this site to see what you can find
"); + "The requested URL was not found on this server.") } } elsif (ord(substr($reqline, 0, 1)) == 128 && !$use_ssl) { # This could be an https request when it should be http .. @@ -1439,9 +1438,7 @@ elsif ($reqline !~ /^(\S+)\s+(.*)\s+HTTP\/1\..$/) { &http_error(200, "Bad Request", "This web server is not running in SSL mode. Try the URL $url instead.", 0, 1); } else { &http_error(404, "Page not found", - "The requested URL was not found on this server ". - "try visiting the home page of this site to see what you can find
" - ); + "The requested URL was not found on this server."); } EOF if ($@) {