summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/request.go')
-rw-r--r--src/pkg/http/request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index b1aface46..8a72d6cfa 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -568,7 +568,7 @@ func ReadRequest(b *bufio.Reader) (req *Request, err os.Error) {
func ParseQuery(query string) (m map[string][]string, err os.Error) {
m = make(map[string][]string)
- for _, kv := range strings.Split(query, "&", 0) {
+ for _, kv := range strings.Split(query, "&", -1) {
kvPair := strings.Split(kv, "=", 2)
var key, value string