[tor-commits] [flashproxy/master] Send /ip as text/plain.

dcf at torproject.org dcf at torproject.org
Mon May 20 07:32:07 UTC 2013


commit 4dcb05cac85663e3de4f7cd12cb11677a83d3c29
Author: David Fifield <david at bamsoftware.com>
Date:   Sun May 19 19:54:14 2013 -0700

    Send /ip as text/plain.
---
 appengine/fp-reg.go |    1 +
 1 file changed, 1 insertion(+)

diff --git a/appengine/fp-reg.go b/appengine/fp-reg.go
index 9d0850c..a485859 100644
--- a/appengine/fp-reg.go
+++ b/appengine/fp-reg.go
@@ -16,6 +16,7 @@ func ipHandler(w http.ResponseWriter, r *http.Request) {
 	if net.ParseIP(remoteAddr).To4() == nil {
 		remoteAddr = "[" + remoteAddr + "]"
 	}
+	w.Header().Set("Content-Type", "text/plain; charset=utf-8")
 	fmt.Fprintf(w, "%s", remoteAddr)
 }
 





More information about the tor-commits mailing list