1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:14:43 -07:00
go/src
Emmanuel Odeke fe4307f060 net/http: support multiple identical Content-Length headers
Referencing RFC 7230 Section 3.3.2, this CL
deduplicates multiple identical Content-Length headers
of a message or rejects the message as invalid if the
Content-Length values differ.

Fixes #16490

Change-Id: Ia6b0f58ec7d35710b11a36113d2bd9128f693f64
Reviewed-on: https://go-review.googlesource.com/31252
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-10-17 09:02:42 +00:00
..
archive archive/tar: reduce allocations in formatOctal 2016-10-12 21:27:51 +00:00
bufio bufio: remove redundant Writer.flush method 2016-10-01 15:46:15 +00:00
builtin
bytes bytes: encode size of rune read by ReadRune into lastRead to speed up UnreadRune 2016-10-17 06:00:35 +00:00
cmd cmd/go: use normal code 2 for 'no such tool' 2016-10-16 22:29:39 +00:00
compress compress/flate: use correct table for size estimation 2016-10-17 09:00:41 +00:00
container
context context: make DeadlineExceeded implement net.Error 2016-10-05 15:53:04 +00:00
crypto crypto/x509: implement SystemCertPool on Windows 2016-10-17 08:29:16 +00:00
database/sql database/sql: add option to use named parameter in query arguments 2016-10-17 07:56:35 +00:00
debug debug/elf: add sparc64 relocations 2016-10-11 21:52:37 +00:00
encoding encoding/xml: split attribute marshaling into its own method 2016-10-13 17:47:44 +00:00
errors
expvar expvar: add Value methods 2016-10-13 21:39:03 +00:00
flag
fmt fmt: document and adjust Scanf space handling to eliminate a few paradoxes 2016-10-07 03:46:50 +00:00
go go/internal/gcimporter: set Pos attribute of decoded types.Objects 2016-10-13 19:31:09 +00:00
hash
html html/template: fix Clone so that t.Lookup(t.Name()) yields t 2016-10-17 00:35:20 +00:00
image image/gif: check handling of truncated GIF files 2016-10-05 04:28:45 +00:00
index/suffixarray
internal os: use FindFirstFile when GetFileAttributesEx fails in Stat 2016-10-14 03:58:15 +00:00
io io: simplified a small part of copyBuffer 2016-10-09 22:50:12 +00:00
log
math math/big: move ProbablyPrime into its own source file 2016-10-11 16:16:17 +00:00
mime net/http: multipart ReadForm close file after copy 2016-10-05 16:35:03 +00:00
net net/http: support multiple identical Content-Length headers 2016-10-17 09:02:42 +00:00
os os: use FindFirstFile when GetFileAttributesEx fails in Stat 2016-10-14 03:58:15 +00:00
path path/filepath: simplify TestToNorm 2016-10-16 09:21:57 +00:00
plugin plugin: darwin support 2016-09-23 02:16:42 +00:00
reflect reflect: ignore struct tags when converting structs 2016-10-04 17:15:59 +00:00
regexp regexp: remove dead code 2016-10-04 14:49:35 +00:00
runtime runtime: use more go:nowritebarrierrec in proc.go 2016-10-15 17:58:23 +00:00
sort sort: fix a slice benchmark not using the stable variant, add another 2016-10-05 14:43:23 +00:00
strconv
strings strings: use Index in Count 2016-10-15 16:39:31 +00:00
sync
syscall syscall, net: make deadline changes affect blocked read/write calls on nacl 2016-10-17 05:53:00 +00:00
testing testing: mention in docs for Logf that a final newline is added if needed 2016-10-16 22:29:55 +00:00
text
time time: document that calendrical calculations are with no leap seconds 2016-10-06 19:43:14 +00:00
unicode unicode: change SimpleFold to handle invalid runes 2016-10-12 18:30:29 +00:00
unsafe
vendor/golang_org/x vendor/golang_org/x/crypto/curve25519: new package 2016-10-12 17:03:55 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/dist, cmd/go: add environment variable override for pkg-config 2016-10-03 18:08:01 +00:00
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc