1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:24:41 -07:00
go/src
Brad Fitzpatrick a48998beb5 net/http: remove invalid checks of Request.Proto* for outgoing requests
The net/http package has long documented that Request.ProtoMajor and
Request.ProtoMinor are ignored for outgoing requests (HTTP/1.1 or
HTTP/2 is always used, never HTTP/1.0). There was one part in the code
that was actually checking 1.0 vs 1.1, but it appears to have been
harmless. Remove it.

Fixes #18407

Change-Id: I362ed6c47ca2de7a2fbca917ed3e866273cfe41f
Reviewed-on: https://go-review.googlesource.com/45155
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-06-08 23:54:01 +00:00
..
archive archive/zip: set utf-8 flag 2017-05-26 17:08:18 +00:00
bufio bufio: clarify WriteTo docs 2017-06-08 17:15:35 +00:00
builtin builtin: use type aliases for rune and byte 2017-06-07 00:42:59 +00:00
bytes bytes: note that NewBuffer take ownership of its argument 2017-06-02 18:03:36 +00:00
cmd cmd/compile: fix real/imag for untyped constant arguments 2017-06-08 17:58:26 +00:00
compress compress/lzw: don't follow code == hi if last is invalid. 2017-06-08 01:27:37 +00:00
container container/heap: avoid up() invoke if down() success at heap.Remove() 2017-05-13 19:10:24 +00:00
context context: define behavior for Err before Done is closed 2017-04-26 15:39:18 +00:00
crypto crypto/rand: only read necessary bytes for Int 2017-05-23 21:02:14 +00:00
database/sql database/sql: Use Tx.ctx in Tx non-context methods 2017-06-07 21:15:36 +00:00
debug debug/dwarf: heuristically handle both UNIX and Windows paths 2017-05-26 14:35:20 +00:00
encoding encoding/json: clarify unmarshaling behaviour on bad fields 2017-06-05 16:32:35 +00:00
errors
expvar expvar: reduce sync.Map overhead for (*Map).Set 2017-05-02 17:13:40 +00:00
flag
fmt fmt: remove unnecessary trailing commas in doc.go 2017-06-07 21:00:42 +00:00
go go/types: adjust type-checking of shifts to match compilers 2017-06-08 16:46:35 +00:00
hash internal/cpu: new package to detect cpu features 2017-05-10 17:02:21 +00:00
html html/template: allow safe usage of predefined escapers in pipelines 2017-05-05 18:56:31 +00:00
image image/gif: don't panic on large or nil-containing color.Palettes. 2017-05-06 00:37:43 +00:00
index/suffixarray
internal internal/poll: implement RawControl of FD on Windows 2017-05-20 00:45:11 +00:00
io
log log/syslog: expand docs a bit to reduce confusion 2017-06-08 20:15:55 +00:00
math math: clarify comment about bit-identical results across architectures 2017-06-06 22:32:34 +00:00
mime mime/multipart: parse boundary with spaces properly 2017-05-23 22:56:44 +00:00
net net/http: remove invalid checks of Request.Proto* for outgoing requests 2017-06-08 23:54:01 +00:00
os os/exec: ignore some pipe write errors on windows 2017-05-23 04:27:01 +00:00
path path: add examples 2017-05-16 15:44:29 +00:00
plugin plugin: resolve plugin import path issue 2017-04-26 00:54:54 +00:00
reflect reflect: check pkgPath for unexported methods in Implements 2017-06-08 00:54:14 +00:00
regexp regexp: speed up QuoteMeta with a lookup table 2017-04-28 06:43:14 +00:00
runtime syscall: make windows Exit call runtime.exit 2017-06-08 23:28:28 +00:00
sort sort: clarify comment about not-a-number values 2017-06-01 21:24:41 +00:00
strconv
strings strings: document Split{,N,After,AfterN} edge cases 2017-06-06 15:48:54 +00:00
sync sync: remove note about creating with structures 2017-06-07 21:35:20 +00:00
syscall syscall: make windows Exit call runtime.exit 2017-06-08 23:28:28 +00:00
testing testing: clarify that subtests are run as goroutines 2017-05-30 16:28:16 +00:00
text text/scanner: clarify documentation on Pos and Position 2017-05-14 20:24:34 +00:00
time time: vendor tzdata-2017b and update test 2017-06-07 21:23:58 +00:00
unicode
unsafe
vendor/golang_org/x vendor: update vendored lif 2017-05-29 21:54:12 +00:00
all.bash Revert "build: fail nicely if somebody runs all.bash from a binary tarball package" 2017-04-28 21:19:32 +00:00
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc