summaryrefslogtreecommitdiff
path: root/src/pkg/http/url.go
AgeCommit message (Collapse)AuthorFilesLines
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-58/+124
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-81/+206
2010-03-16http: change RawPath to mean raw path, not raw everything-after-scheme.Russ Cox1-7/+16
The new meaning is more useful for both websocket and http. R=r, petar-m, ukai CC=golang-dev, madari http://codereview.appspot.com/582043
2010-02-25strings: delete Runes, BytesRuss Cox1-1/+1
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-01-07http: most of a URL shouldn't use URL-escapingRuss Cox1-13/+25
Fixes issue 502. R=r, hoisie CC=golang-dev http://codereview.appspot.com/181179
2010-01-06Add http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.Ivan Krasin1-9/+57
R=rsc, imkrasin CC=golang-dev http://codereview.appspot.com/179126 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-79/+79
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-5/+5
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-15http.URLEscape: escape all bytes required by RFC 2396Russ Cox1-6/+8
Fixes issue 125. R=r http://codereview.appspot.com/154143
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-5/+5
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-32/+32
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-3/+1
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox1-37/+37
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
2009-08-19fix spelling that is correct but bothers me anywayRob Pike1-3/+3
R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=33496 CL=33519
2009-06-25Change os.Error convention:Russ Cox1-22/+50
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-24style police: parens in if, for, switch, rangeRuss Cox1-5/+5
R=r DELTA=32 (0 added, 3 deleted, 29 changed) OCL=30718 CL=30725
2009-06-16URL should have an empty Scheme if there is an invalid character (i.e.Jacob Baskin1-0/+4
not [a-zA-Z0-9+-.]) before there is a ":". This is particularly helpful in the erroneous-but-relatively-common case of relative URLs containing an unescaped colon in the query string--see the added test for an example. R=rsc APPROVED=rsc DELTA=15 (15 added, 0 deleted, 0 changed) OCL=30354 CL=30356
2009-06-09mv src/lib to src/pkgRob Pike1-0/+303
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102