mirror of https://github.com/mpolden/echoip
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.
This commit is contained in:
parent
d576730d08
commit
f57ced63d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue