commit 9ebe1e97f297c8b6127784cb06edcef54c7e546c Author: David Fifield david@bamsoftware.com Date: Mon May 20 00:27:01 2013 -0700
Copy BASE's status, header, and body. --- appengine/fp-reg.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/appengine/fp-reg.go b/appengine/fp-reg.go index 6e55528..d4f84c2 100644 --- a/appengine/fp-reg.go +++ b/appengine/fp-reg.go @@ -1,6 +1,7 @@ package fp_reg
import ( + "io" "net" "net/http" "path" @@ -37,7 +38,13 @@ func regHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusInternalServerError) return } - w.Write([]byte("Thanks.")) + for key, values := range resp.Header { + for _, value := range values { + w.Header().Add(key, value) + } + } + w.WriteHeader(resp.StatusCode) + io.Copy(w, resp.Body) }
func init() {
tor-commits@lists.torproject.org