[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] No need for fmt.
commit 96ad192010e465a34ffd30707d0e554308ac9d9b
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sun May 19 19:55:55 2013 -0700
No need for fmt.
---
appengine/fp-reg.go | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/appengine/fp-reg.go b/appengine/fp-reg.go
index a485859..107ec87 100644
--- a/appengine/fp-reg.go
+++ b/appengine/fp-reg.go
@@ -1,7 +1,6 @@
package fp_reg
import (
- "fmt"
"net"
"net/http"
@@ -17,7 +16,7 @@ func ipHandler(w http.ResponseWriter, r *http.Request) {
remoteAddr = "[" + remoteAddr + "]"
}
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
- fmt.Fprintf(w, "%s", remoteAddr)
+ w.Write([]byte(remoteAddr))
}
func regHandler(w http.ResponseWriter, r *http.Request) {
@@ -29,7 +28,7 @@ func regHandler(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- fmt.Fprintf(w, "Thanks.")
+ w.Write([]byte("Thanks."))
}
func init() {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits