Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd Use a protocol-agnostic URL (don't degrade HTT...



details:   https://anonhg.NetBSD.org/src/rev/ba194e15e06e
branches:  trunk
changeset: 359082:ba194e15e06e
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Jan 28 13:37:39 2018 +0000

description:
Use a protocol-agnostic URL (don't degrade HTTPS->HTTP)

Suggested by Travis Paul in PR bin/52958.

diffstat:

 libexec/httpd/bozohttpd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f4610270c6f8 -r ba194e15e06e libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Sun Jan 28 10:02:00 2018 +0000
+++ b/libexec/httpd/bozohttpd.c Sun Jan 28 13:37:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bozohttpd.c,v 1.86 2017/02/05 01:55:03 mrg Exp $       */
+/*     $NetBSD: bozohttpd.c,v 1.87 2018/01/28 13:37:39 maya Exp $      */
 
 /*     $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $      */
 
@@ -1990,7 +1990,7 @@
                    "<html><head><title>%s</title></head>\n"
                    "<body><h1>%s</h1>\n"
                    "%s%s: <pre>%s</pre>\n"
-                   "<hr><address><a href=\"http://%s%s/\";>%s%s</a></address>\n"
+                   "<hr><address><a href=\"//%s%s/\">%s%s</a></address>\n"
                    "</body></html>\n",
                    header, header,
                    user ? user : "", file,



Home | Main Index | Thread Index | Old Index