From da3502d42997e2aadc46d1108a7efde10478ed6a Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 10 Feb 2018 18:04:23 +0100 Subject: [PATCH] Update template --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index c0bc613..f1e3b78 100644 --- a/index.html +++ b/index.html @@ -79,7 +79,7 @@ $ http {{ .Host }}/city
 $ http {{ .Host }}/json
 {{ .JSON }}
-

Setting the Accept header to application/json also works.

+

Setting the Accept: application/json header also works as expected.

Plain output

Always returns the IP address including a trailing newline, regardless of user agent.