[tor-commits] [snowflake/master] Fix broker test

arlo at torproject.org arlo at torproject.org
Thu Jan 21 22:59:16 UTC 2016


commit 26803437908b058f452dc61f42381ee0a4f6bc91
Author: Arlo Breault <arlolra at gmail.com>
Date:   Thu Jan 21 14:59:02 2016 -0800

    Fix broker test
---
 broker/snowflake-broker.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/broker/snowflake-broker.go b/broker/snowflake-broker.go
index c2bde7b..13b0586 100644
--- a/broker/snowflake-broker.go
+++ b/broker/snowflake-broker.go
@@ -118,7 +118,7 @@ func clientHandler(w http.ResponseWriter, r *http.Request) {
 	// TODO: Needs improvement.
 	snowflake := heap.Pop(snowflakes).(*Snowflake)
 	if nil == snowflake {
-		w.Header().Set("Status", http.StatusServiceUnavailable)
+		w.WriteHeader(http.StatusServiceUnavailable)
 		// w.Write([]byte("no snowflake proxies available"))
 		return
 	}



More information about the tor-commits mailing list