From f57ced63d8333deb009ca374827fc9f55a7711a8 Mon Sep 17 00:00:00 2001 From: Steven Honson Date: Mon, 15 Jun 2020 15:03:24 +1000 Subject: [PATCH] Use http:// with fetch example This resolves an issue for those serving echoip exclusively over HTTP. Those using HTTPS are likely to have a redirect in place from HTTP to HTTPS, which fetch will follow. Whereas the reverse is less likely. Using http:// as the default here is likely to be more widely compatible. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 0e82496..e836a89 100644 --- a/index.html +++ b/index.html @@ -100,7 +100,7 @@ $ http -b {{ .Host }} $ wget -qO- {{ .Host }} {{ .IP }} -$ fetch -qo- https://{{ .Host }} +$ fetch -qo- http://{{ .Host }} {{ .IP }} $ bat -print=b {{ .Host }}/ip