1. 21 May, 2011 3 commits
    • Rob Pike's avatar
      flags: allow distinct sets of flags. · f4fe688b
      Rob Pike authored
      A FlagSet is an independent set of flags that may be used,
      for example, to provide flag processing for subcommands
      in a CLI.  The standard, os.Args-derived set of flags is a
      global but non-exported FlagSet and the standard functions
      are wrappers for methods of that FlagSet.
      
      Allow the programmer to control whether the program
      exits if there is a parse error.  For the default set, the behavior
      remains to exit on error.
      
      The handling of Usage is odd due to backward compatibility.
      
      R=golang-dev, bradfitz, r, bradfitz
      CC=golang-dev
      https://golang.org/cl/4517092
      f4fe688b
    • Dave Cheney's avatar
      5l: fix set but not used warnings · 648f25b2
      Dave Cheney authored
      R=rsc, iant
      CC=golang-dev
      https://golang.org/cl/4538083
      648f25b2
    • Brad Fitzpatrick's avatar
      http: include Host header in requests, even with proxies · e4b94224
      Brad Fitzpatrick authored
      A user pointed out that Go didn't work with their
      corp proxy, always throwing 400 Bad Request errors.
      
      Looking at the RFC 2616, Host is always required,
      even with proxies.
      
      The old code assumed that writing an absolute URL
      in the first line of an HTTP request implied
      that the Host header was no longer necessary.
      
      Double-checked behavior with curl.
      
      R=golang-dev, dsymonds
      CC=golang-dev
      https://golang.org/cl/4539075
      e4b94224
  2. 20 May, 2011 9 commits
  3. 19 May, 2011 5 commits
  4. 18 May, 2011 12 commits
  5. 17 May, 2011 11 commits