Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(53)

Unified Diff: src/pkg/http/request.go

Issue 1704044: code review 1704044: strings and bytes.Split: make count of 0 mean 0, not in... (Closed)
Patch Set: code review 1704044: strings and bytes.Split: make count of 0 mean 0, not in... Created 14 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/go/doc/comment.go ('k') | src/pkg/http/transfer.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/http/request.go
===================================================================
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -568,7 +568,7 @@
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
« no previous file with comments | « src/pkg/go/doc/comment.go ('k') | src/pkg/http/transfer.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b