1. 24 May, 2018 1 commit
  2. 22 May, 2018 1 commit
  3. 21 May, 2018 1 commit
    • Nick Craig-Wood's avatar
      webdav: allow the user to override the ETag and ContentType properties · 8e0cdda2
      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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      8e0cdda2
  4. 19 May, 2018 1 commit
    • Brad Fitzpatrick's avatar
      webdav: convert to UTC before using http.TimeFormat · 57065200
      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: 's avatarFilippo Valsorda <filippo@golang.org>
      57065200
  5. 11 May, 2018 1 commit
  6. 09 May, 2018 1 commit
  7. 08 May, 2018 1 commit
  8. 07 May, 2018 3 commits
  9. 02 May, 2018 1 commit
  10. 20 Apr, 2018 1 commit
  11. 18 Apr, 2018 2 commits
  12. 17 Apr, 2018 2 commits
  13. 16 Apr, 2018 1 commit
  14. 15 Apr, 2018 1 commit
  15. 06 Apr, 2018 1 commit
    • Mikio Hara's avatar
      internal/{socks,sockstest}: new packages · 61147c48
      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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      61147c48
  16. 04 Apr, 2018 1 commit
  17. 30 Mar, 2018 2 commits
  18. 20 Mar, 2018 1 commit
  19. 19 Mar, 2018 4 commits
  20. 17 Mar, 2018 1 commit
  21. 14 Mar, 2018 1 commit
  22. 13 Mar, 2018 2 commits
  23. 11 Mar, 2018 1 commit
  24. 08 Mar, 2018 1 commit
  25. 07 Mar, 2018 1 commit
  26. 06 Mar, 2018 1 commit
  27. 01 Mar, 2018 1 commit
  28. 18 Feb, 2018 1 commit
  29. 16 Feb, 2018 2 commits
  30. 15 Feb, 2018 1 commit