From 242ba22f8c65d14e44ff1aa39e68746630b03fe3 Mon Sep 17 00:00:00 2001 From: Justin Li Date: Thu, 18 Jun 2015 10:15:48 -0400 Subject: [PATCH] Add failing test that reproduces #63 --- http/query/query_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/query/query_test.go b/http/query/query_test.go index 1119cdf..357fbd7 100644 --- a/http/query/query_test.go +++ b/http/query/query_test.go @@ -26,6 +26,7 @@ var ( url.Values{"info_hash": {testInfoHash}, "peer_id": {testPeerID}, "port": {"6881"}, "downloaded": {"1234"}, "left": {"4321"}, "compact": {"0"}, "no_peer_id": {"1"}, "key": {"peerKey"}, "trackerid": {"trackerId"}}, url.Values{"info_hash": {testInfoHash}, "peer_id": {"%3Ckey%3A+0x90%3E"}, "port": {"6881"}, "downloaded": {"1234"}, "left": {"4321"}, "compact": {"0"}, "no_peer_id": {"1"}, "key": {"peerKey"}, "trackerid": {"trackerId"}}, url.Values{"info_hash": {testInfoHash}, "peer_id": {"%3Ckey%3A+0x90%3E"}, "compact": {"1"}}, + url.Values{"info_hash": {""}, "peer_id": {""}, "compact": {""}}, } InvalidQueries = []string{