From 6bb89a84fca54e75b87ccaa5bf7e6d9d45321d2a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 13 Aug 2022 09:34:03 -0700 Subject: [PATCH] Redirect to https with Javascript --- miniserv.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index b69015a0d..d67aaccec 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -1448,8 +1448,13 @@ elsif ($reqline !~ /^(\S+)\s+(.*)\s+HTTP\/1\..$/) { # Tell user the correct URL &http_error(200, "Document follows", "This web server is running in SSL mode. ". - "Try the URL $url ". - "instead.", 0, 1); + "Try the URL $url instead.". + "", + 0, 1); } else { # Throw an error &http_error(404, "Page not found",