[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 4dcb05cac85663e3de4f7cd12cb11677a83d3c29
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits