]> Cypherpunks repositories - gostls13.git/commit
url: handle ; in ParseQuery
authorRuss Cox <rsc@golang.org>
Tue, 6 Sep 2011 16:24:24 +0000 (12:24 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Sep 2011 16:24:24 +0000 (12:24 -0400)
commit686181edfed0f738fe6aafe76fafded9d0be155b
tree765cb7944dc64b1bd5d8b2e1c075952240cae72c
parent5ddf6255a13c5a23663ca49db2d038c6530cb7a1
url: handle ; in ParseQuery

Most web frameworks allow ; as a synonym for &,
following a recommendation in some versions of
the HTML specification.  Do the same.

Remove overuse of Split.

Move ParseQuery tests from package http to package url.

Fixes #2210.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4973062
src/pkg/http/request_test.go
src/pkg/url/url.go
src/pkg/url/url_test.go