1. 20 Oct, 2015 5 commits
    • Aaron Jacobs's avatar
      runtime: rename _func.frame to make it clear it's deprecated and unused. · 3bc06017
      Aaron Jacobs authored
      When I saw that it was labelled "legacy", I went looking for users of it
      to see how it was still used. But there aren't any. Save the next person
      the trouble.
      
      Change-Id: I921dd6c57b60331c9816542272555153ac133c02
      Reviewed-on: https://go-review.googlesource.com/16035Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
      Run-TryBot: Dave Cheney <dave@cheney.net>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      3bc06017
    • Thorben Krueger's avatar
      fmt: Add support for capital '%X' format verb for scanning · 26fe24cb
      Thorben Krueger authored
      For printing, the format verb '%X' results in a capitalized
      hex-representation of the formatted value. Conversely, using
      '%X' in a Scanf function should scan a hex-representation
      into the given interface{}. The existing implementation
      however only supports '%X' for scanning hex values into
      integers; strings or byte slices remain empty. On the other
      hand, lower-case '%x' supports strings and byte slices just
      fine. This is merely an oversight, which this commit fixes.
      (Additional tests also included.)
      
          Fixes #12940
      
      Change-Id: I178a7f615bae950dfc014ca8c0a038448cf0452a
      Reviewed-on: https://go-review.googlesource.com/15689Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
      26fe24cb
    • Nodir Turakulov's avatar
      net/http/httptest: detect Content-Type in ResponseRecorder · 0bf515c8
      Nodir Turakulov authored
      * detect Content-Type on ReponseRecorder.Write[String] call
        if header wasn't written yet, Content-Type header is not set and
        Transfer-Encoding is not set.
      * fix typos in serve_test.go
      
      Updates #12986
      
      Change-Id: Id2ed8b1994e64657370fed71eb3882d611f76b31
      Reviewed-on: https://go-review.googlesource.com/16096Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      0bf515c8
    • Brad Fitzpatrick's avatar
      net/http: add Transport.TLSNextProto, ErrSkipAltProtocol · d4d16688
      Brad Fitzpatrick authored
      This is the start of wiring up the HTTP/2 Transport. It is still
      disabled in this commit.
      
      This change does two main things:
      
      1) Transport.RegisterProtocol now permits registering "http" or
         "https" (they previously paniced), and the semantics of the
         registered RoundTripper have been extended to say that the new
         sentinel error value (ErrSkipAltProtocol, added in this CL) means
         that the Transport's RoundTrip method proceeds as if the alternate
         protocol had not been registered. This gives us a place to register
         an alternate "https" RoundTripper which gets first dibs on using
         HTTP/2 if there's already a cached connection.
      
      2) adds Transport.TLSNextProto, a map keyed by TLS NPN/ALPN protocol
         strings, similar in feel to the existing Server.TLSNextProto map.
         This map is the glue between the HTTP/1 and HTTP/2 clients, since
         we don't know which protocol we're going to speak (and thus which
         Transport type to use) until we've already made the TCP connection.
      
      Updates #6891
      
      Change-Id: I7328c7ff24f52d9fe4899facabf7ecc5dcb989f3
      Reviewed-on: https://go-review.googlesource.com/16090Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      d4d16688
    • Brad Fitzpatrick's avatar
      net/http/httptest: change Server to use http.Server.ConnState for accounting · a3156aaa
      Brad Fitzpatrick authored
      With this CL, httptest.Server now uses connection-level accounting of
      outstanding requests instead of ServeHTTP-level accounting. This is
      more robust and results in a non-racy shutdown.
      
      This is much easier now that net/http.Server has the ConnState hook.
      
      Fixes #12789
      Fixes #12781
      
      Change-Id: I098cf334a6494316acb66cd07df90766df41764b
      Reviewed-on: https://go-review.googlesource.com/15151Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a3156aaa
  2. 19 Oct, 2015 20 commits
  3. 18 Oct, 2015 7 commits
  4. 17 Oct, 2015 4 commits
  5. 16 Oct, 2015 4 commits