From fb588bd87b256d8f209c213c4f22858a5e9e388a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 8 Jun 2016 15:40:54 +0200 Subject: Content-Type --- ip.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ip.go b/ip.go index f3ec3f1..a24fb1f 100644 --- a/ip.go +++ b/ip.go @@ -11,6 +11,7 @@ func init() { } func ip(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "text/plain") addr, _, err := net.SplitHostPort(r.RemoteAddr) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) -- cgit v1.2.3