- 30 May, 2018 4 commits
-
-
Mikio Hara authored
This change adds DialWithConn method for allowing package users to use own net.Conn implementations optionally. Also makes the deprecated Dialer.Dial return a raw transport connection instead of a forward proxy connection for preserving the backward compatibility on proxy.Dialer.Dial method. Fixes golang/go#25104. Change-Id: I4259cd10e299c1e36406545708e9f6888191705a Reviewed-on: https://go-review.googlesource.com/110135 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
The registry for IPv4 TOS Byte and IPv6 Traffic Class Octet has been moved to DSCP registry. Also uses HTTPS for fetching any IANA resource. Change-Id: I6a54defc2be4415fac084fcf9dfe0a481d72df33 Reviewed-on: https://go-review.googlesource.com/115220 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tobias Klauser authored
Follow-up fix for CL 115237 which fixed the generated file. Change-Id: I17881ce4ad1fc8f7d74b2b78e515d5d5430ad451 Reviewed-on: https://go-review.googlesource.com/115275Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Change-Id: I59cefd183f7aea120dba98f71bffd7aaf24ff1c2 Reviewed-on: https://go-review.googlesource.com/115217 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
- 24 May, 2018 1 commit
-
-
Brad Fitzpatrick authored
Don't assume goroutines are gone immediately. Copy the waitCondition & waitErrCondition helpers from net/http's tests, so we can assume both exist in both repos, even though we only use one of them as of this CL. Fixes golang/go#22889 Change-Id: Ife251c9552bc68646e174a7ac082b363e32132a1 Reviewed-on: https://go-review.googlesource.com/114012 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
-
- 22 May, 2018 1 commit
-
-
Michael Fraenkel authored
Updates golang/go#25023 Change-Id: Icd37dfef1b9558b0e774f1637c5566fb444666d5 Reviewed-on: https://go-review.googlesource.com/111679Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 21 May, 2018 1 commit
-
-
Nick Craig-Wood authored
Before this commit it was not possible to override the the ContentType and ETag properties. Since these properties aren't directly read from the os.FileInfo objects returned by the FileSystem it seems reasonable that the user might have a different policy for computing them. For instance the underlying FileSystem may already know the ContentType or want to use an MD5 Hash for the ETag. This commit introduces two new optional interfaces ETager and ContentTyper which, when defined on the os.FileInfo objects returned by the FileSystem methods, allows the user of this library to override the ETag and ContentType generation. Fixes golang/go#22577 Change-Id: Ib42e126db3fcc0a93463e61db85fde59be85cca5 Reviewed-on: https://go-review.googlesource.com/109217Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 19 May, 2018 1 commit
-
-
Brad Fitzpatrick authored
http.TimeFormat hard-codes GMT and is documented that: > TimeFormat is the time format to use when generating times in HTTP > headers. It is like time.RFC1123 but hard-codes GMT as the time > zone. The time being formatted must be in UTC for Format to generate > the correct format. These two users weren't UTC-ifying the time.Time first. Fixes golang/go#25015 Change-Id: I82be01856260e363361137fd9651b1940f439f21 Reviewed-on: https://go-review.googlesource.com/113795 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
-
- 11 May, 2018 1 commit
-
-
Matt Layher authored
Change-Id: I889a02587b39e448ccdc5d723183ab550104ec5b Reviewed-on: https://go-review.googlesource.com/112816Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 09 May, 2018 1 commit
-
-
Filippo Valsorda authored
When a Content-Type that triggers content sniffing in old (but still in significant use) browsers is sent, add the X-Content-Type-Options: nosniff header, unless explicitly disabled. Expose httpguts.SniffedContentType for use in the HTTP 1 implementation. Will be tested by net/http.TestNoSniffHeader_h2. Updates golang/go#24513 Change-Id: Id1ffea867a496393cb52c5a9f45af97d4b2fcf12 Reviewed-on: https://go-review.googlesource.com/112015 Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 08 May, 2018 1 commit
-
-
Mikio Hara authored
Change-Id: Ic81b9ab72be34a95e677a1dd40e970f86109eefc Reviewed-on: https://go-review.googlesource.com/111935 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 07 May, 2018 3 commits
-
-
Michael Fraenkel authored
Dynamic table size updates must occur at the beginning of the first header block. Updates golang/go#25023 Change-Id: I7fd4f191da0a97cab26666545191460a6f6c1433 Reviewed-on: https://go-review.googlesource.com/111681Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
httplex was the original package name for shared code between net/http and x/net/http2, but its name was too specific, and http/httpguts was added later for other shared code. We discussed merging httplex into httpguts at the time, but it didn't happen earlier. This finishes the move. Updates golang/go#23908 Change-Id: Ic7d6f39e584ca579d34b5ef5ec6a0c002a38a83c Reviewed-on: https://go-review.googlesource.com/111875Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Thanabodee Charoenpiriyakij authored
Fixes golang/go#25230 Change-Id: Ie16295552fcd414555153626f62170ffb7bdba1d Reviewed-on: https://go-review.googlesource.com/111835Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 02 May, 2018 1 commit
-
-
Richard Musiol authored
This commit adds the js/wasm architecture to the internal/nettest package. js/wasm currently uses the same fake networking as nacl. Support for real networking will be added later. Related to https://go-review.googlesource.com/c/go/+/109995 Change-Id: Ic914175374d7588dcb3c078da0e0e71c88323d1a Reviewed-on: https://go-review.googlesource.com/110895Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 20 Apr, 2018 1 commit
-
-
Mark Fischer authored
If conn closes but the request cancel select is still blocked we must close the connection wait channel. Updates golang/go#24776 (needs bundle into std for fix) Change-Id: I7e3ffdf2dd9b127727e24fe262b2f4c5d96fc184 Reviewed-on: https://go-review.googlesource.com/108415 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 18 Apr, 2018 2 commits
-
-
Kunpei Sakai authored
Updates golang/go#23071 Change-Id: Ifef79e077801422eb273af3e5a541c85c63bfce4 Reviewed-on: https://go-review.googlesource.com/107575Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
Baokun Lee authored
The header X-Content-Type-Options:nosniff is an explicit directive that content-type should not be sniffed. ---- https://fetch.spec.whatwg.org/#x-content-type-options-header defines the X-Content-Type-Options header. ["Polyglots: Crossing Origins by Crossing Formats"](http://citeseerx.ist.psu.edu /viewdoc/download?doi=10.1.1.905.2946&rep=rep1&type=pdf) explains Polyglot attacks in more detail. Fixes golang/go#24795 Change-Id: Ibcc2d6a561394392ad0bf112eecc01c43823a2a2 Reviewed-on: https://go-review.googlesource.com/107295Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 17 Apr, 2018 2 commits
-
-
Kunpei Sakai authored
Updates golang/go#23071 Change-Id: I73d7302c5bde4441aa824093fdcce52e8bb51e31 Reviewed-on: https://go-review.googlesource.com/107379 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
Kunpei Sakai authored
Updates golang/go#23071 Change-Id: I07aae04757e83a3a03681a2ce92e4cab194ef64a Reviewed-on: https://go-review.googlesource.com/107198 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 16 Apr, 2018 1 commit
-
-
David Url authored
Introduce a common package x/net/http/httpguts which can be vendored by net/http to share detail implementations of the HTTP specification with x/net/http2. Updates golang/go#23908 Change-Id: Id5a2d51e05135436cf406c4c4d1b13fca7f84a32 Reviewed-on: https://go-review.googlesource.com/104042Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 15 Apr, 2018 1 commit
-
-
namusyaka authored
See: https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-intemplate Updates golang/go#23071 Change-Id: I36529b7cf5d2adf159ed5c471fba9f67890b7eb9 Reviewed-on: https://go-review.googlesource.com/94838 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 06 Apr, 2018 1 commit
-
-
Mikio Hara authored
This change factors out the code related to SOCKS protocol version 5 from the golang/x/net/proxy package and provides new SOCKS-specific API to fix the following: - inflexbility of forward proxy connection setup; e.g., no support for context-based deadline or canceling, no support for dial deadline, no support for working with external authentication mechanisms, - useless error values for troubleshooting. The new package socks is supposed to be used by the net/http package of standard library and proxy package of golang.org/x/net repository. Fixes golang/go#11682. Updates golang/go#17759. Updates golang/go#19354. Updates golang/go#19688. Fixes golang/go#21333. Change-Id: I24098ac8522dcbdceb03d534147c5101ec9e7350 Reviewed-on: https://go-review.googlesource.com/38278 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 Apr, 2018 1 commit
-
-
Anand K. Mistry authored
The net.Listener interface specifies that on Close: // Any blocked Accept operations will be unblocked and return errors. Fixes golang/go#24458 Change-Id: I4a61a79db9579a40b536aa65c8077da87aa25156 Reviewed-on: https://go-review.googlesource.com/101535Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 30 Mar, 2018 2 commits
-
-
Mikio Hara authored
Change-Id: I008840a981179bb9397735b88155d7476ae76599 Reviewed-on: https://go-review.googlesource.com/101296Reviewed-by: Ian Gudger <igudger@google.com>
-
Mikio Hara authored
This change introduces OPTResourse type to support DNS messages containing various extension options as defined in RFC 6891. Parsing and building OPT pseudo records requires allocations like TXT records. Also adds DNSSECAllowed, ExtendedRCode and SetEDNS0 methods to ResourceHeader for convenience. Updates golang/go#6464. Updates golang/go#16218. Change-Id: Ib72cea277201e4122c6b5effa320084ff351c886 Reviewed-on: https://go-review.googlesource.com/47170Reviewed-by: Ian Gudger <igudger@google.com>
-
- 20 Mar, 2018 1 commit
-
-
Mikio Hara authored
This change implements support for extended echo request and reply messages, and interface identification object that can be used to test the status of a probed interface via a proxy interface from a probing interface as defined in RFC 8335. It's package user's responsibility to make a complete RFC-compliant PROBE initiator implementation using ipv4, ipv6 and icmp packages of x/net repository. Fixes golang/go#24440. Change-Id: I87ab8a7581c4d41a0c579805b0e3043e48ac85f0 Reviewed-on: https://go-review.googlesource.com/63999Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 19 Mar, 2018 4 commits
-
-
Mikio Hara authored
Updates golang/go#24440. Change-Id: Idbe22ca853ea4771bb979782ef3bac8b03c59b87 Reviewed-on: https://go-review.googlesource.com/63998 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Updates golang/go#24440. Change-Id: Icd7dbb9b6748ba8dd165eec1c0021650b7f4d97d Reviewed-on: https://go-review.googlesource.com/63997 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Updates golang/go#24440. Change-Id: Ic56bb1add57831d6c94f148d209417be5aa22cb2 Reviewed-on: https://go-review.googlesource.com/63996 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
This change reorganizes the existing test cases for supporting new messages and extension in upcoming CLs. It also renames ping_test.go to diag_test.go for clarification. Updates golang/go#24440. Change-Id: I5753a2ddbe76423d996a37f583fcf32b65d380e9 Reviewed-on: https://go-review.googlesource.com/63995Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 17 Mar, 2018 1 commit
-
-
Ian Gudger authored
Updates golang/go#10622 Change-Id: Iadf0ff0fd223a315130941464040aef5e71f6130 Reviewed-on: https://go-review.googlesource.com/100055 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
-
- 14 Mar, 2018 1 commit
-
-
Andrew Bonventre authored
Updates golang/go#24185 Change-Id: Ifbd5b9c8c8bb11635c49a390a8deda8bfed8e849 Reviewed-on: https://go-review.googlesource.com/100685Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 13 Mar, 2018 2 commits
-
-
Ian Gudger authored
Previously, we only accepted a single string for TXT records and then chunked it into 255 byte segments. This is wrong. TXT records are a sequence of strings, each up to 255 bytes. Updates golang/go#24288 Change-Id: Ib2c085ec127ccecf0c7bda930100b667cabc1f4b Reviewed-on: https://go-review.googlesource.com/100196Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Mikio Hara authored
Fixes golang/go#24346 Change-Id: I6b32d79135c0843d62425f4cc4c18f5a0eb9efd3 Reviewed-on: https://go-review.googlesource.com/100155Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 11 Mar, 2018 1 commit
-
-
namusyaka authored
CL generated mechanically with github.com/mdempsky/unconvert. Change-Id: I22eea0b991462dd00f3fa28073a8b886e19bc068 Reviewed-on: https://go-review.googlesource.com/100095 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
-
- 08 Mar, 2018 1 commit
-
-
David Howden authored
This change protects fields mutated by Trace methods with a mutex. In particular it fixes races caused by concurrent calls to IsError, and viewing active traces in /debug/requests. Includes changes from CL/67730. Updates golang/go#24231 Change-Id: I07db54c2642efe0ea0e3ffeb54ec796ae51e70ef Reviewed-on: https://go-review.googlesource.com/98535 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
-
- 07 Mar, 2018 1 commit
-
-
Brad Fitzpatrick authored
So https://http2.golang.org/reqinfo has a RemoteAddr of the client's actual IP address. Change-Id: I9db52b2f451ad937d013dd78078e4228e732ffe0 Reviewed-on: https://go-review.googlesource.com/99235Reviewed-by: David Anderson <danderson@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 06 Mar, 2018 1 commit
-
-
Ian Gudger authored
Updates golang/go#16218 Change-Id: I078395a8c3967c2ac6a6e86f1528a431346b8ff4 Reviewed-on: https://go-review.googlesource.com/98755Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 01 Mar, 2018 1 commit
-
-
Ian Gudger authored
The new appending behavior is required for an efficient DNS client. (*Builder).Start was intended to append, but didn't. This was a mistake (all tests and examples assumed that it did). In addition, message compression when appending has been fixed. Updates golang/go#16218 Change-Id: I3f42aa6e653e2990fa90368a2803e588ea15b85a Reviewed-on: https://go-review.googlesource.com/97716Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-