1
0
mirror of https://github.com/golang/go synced 2024-10-04 16:31:22 -06:00
go/src/pkg/http
Rob Pike 7d43b84282 time: make Weekday a method.
Weekday is redundant information for a Time structure.
When parsing a time with a weekday specified, it can create an
incorrect Time value.
When parsing a time without a weekday specified, people
expect the weekday to be set.
Fix all three problems by computing the weekday on demand.

This is hard to gofix, since we must change the type of the node.
Since uses are rare and existing code will be caught by the compiler,
there is no gofix module here.

Fixes #2245.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4974077
2011-09-12 11:47:55 -07:00
..
cgi cleanup: gofmt -s -w src misc 2011-09-06 16:04:55 -07:00
fcgi cleanup: gofmt -s -w src misc 2011-09-06 16:04:55 -07:00
httptest http: fix chunking bug during content sniffing 2011-07-21 14:29:14 -04:00
pprof http/pprof: fix POST reading bug 2011-05-02 17:34:22 -04:00
spdy cleanup: gofmt -s -w src misc 2011-09-06 16:04:55 -07:00
testdata http: add test to serve content in index.html 2011-08-09 10:25:53 -07:00
chunked.go http: make NewChunkedReader public 2011-06-29 12:27:53 -07:00
client_test.go url: new package 2011-08-17 13:36:02 +10:00
client.go url: new package 2011-08-17 13:36:02 +10:00
cookie_test.go time: make Weekday a method. 2011-09-12 11:47:55 -07:00
cookie.go strings.Split: make the default to split all. 2011-06-28 09:43:14 +10:00
dump.go http: clarify docs on Request HTTP version 2011-04-21 19:57:19 -07:00
export_test.go http: handler timeout support 2011-04-15 12:53:32 -07:00
filetransport_test.go http: add file protocol transport 2011-08-30 21:47:41 -07:00
filetransport.go http: add file protocol transport 2011-08-30 21:47:41 -07:00
fs_test.go url: new package 2011-08-17 13:36:02 +10:00
fs.go http: correct path to serve index.html. 2011-08-04 08:20:53 -04:00
header_test.go http: write Header keys with empty values 2011-06-20 14:36:03 -07:00
header.go sort: rename helpers: s/Sort// in sort.Sort[Float64s|Ints|Strings] 2011-07-08 10:52:50 +10:00
lex_test.go gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
lex.go single argument panic 2010-03-30 10:34:57 -07:00
Makefile http: add file protocol transport 2011-08-30 21:47:41 -07:00
persist.go http: document that ServerConn and ClientConn are low-level 2011-06-29 18:23:38 -07:00
proxy_test.go http: add Transport.ProxySelector 2011-05-18 09:23:29 -07:00
range_test.go httptest: introduce TempServer, clean up tests 2011-03-05 13:51:35 -08:00
readrequest_test.go url: new package 2011-08-17 13:36:02 +10:00
request_test.go url: handle ; in ParseQuery 2011-09-06 12:24:24 -04:00
request.go http: add MaxBytesReader to limit request body size 2011-08-23 12:17:21 +04:00
requestwrite_test.go url: new package 2011-08-17 13:36:02 +10:00
response_test.go pkg: fix incorrect prints found by govet 2011-05-14 20:43:18 -07:00
response.go strings.Split: make the default to split all. 2011-06-28 09:43:14 +10:00
responsewrite_test.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
reverseproxy_test.go url: new package 2011-08-17 13:36:02 +10:00
reverseproxy.go url: new package 2011-08-17 13:36:02 +10:00
serve_test.go http: return 413 instead of 400 when the request body is too large 2011-08-25 14:00:00 +04:00
server.go http: return 413 instead of 400 when the request body is too large 2011-08-25 14:00:00 +04:00
sniff_test.go http: add more MPEG-4 MIME types to sniffer, and disable MP4 sniffing. 2011-08-04 22:10:17 +10:00
sniff.go http: add more MPEG-4 MIME types to sniffer, and disable MP4 sniffing. 2011-08-04 22:10:17 +10:00
status.go http: revised http Handler interface 2010-09-29 14:30:12 +10:00
transfer.go http: add MaxBytesReader to limit request body size 2011-08-23 12:17:21 +04:00
transport_test.go url: new package 2011-08-17 13:36:02 +10:00
transport.go http: support setting Transport's TLS client config 2011-08-26 10:06:35 +04:00
triv.go go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00