1. 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
  2. 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
  3. 11 May, 2018 1 commit
  4. 09 May, 2018 1 commit
  5. 08 May, 2018 1 commit
  6. 07 May, 2018 3 commits
  7. 02 May, 2018 1 commit
  8. 20 Apr, 2018 1 commit
  9. 18 Apr, 2018 2 commits
  10. 17 Apr, 2018 2 commits
  11. 16 Apr, 2018 1 commit
  12. 15 Apr, 2018 1 commit
  13. 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
  14. 04 Apr, 2018 1 commit
  15. 30 Mar, 2018 2 commits
  16. 20 Mar, 2018 1 commit
  17. 19 Mar, 2018 4 commits
  18. 17 Mar, 2018 1 commit
  19. 14 Mar, 2018 1 commit
  20. 13 Mar, 2018 2 commits
  21. 11 Mar, 2018 1 commit
  22. 08 Mar, 2018 1 commit
  23. 07 Mar, 2018 1 commit
  24. 06 Mar, 2018 1 commit
  25. 01 Mar, 2018 1 commit
  26. 18 Feb, 2018 1 commit
  27. 16 Feb, 2018 2 commits
  28. 15 Feb, 2018 1 commit
  29. 08 Feb, 2018 1 commit
  30. 02 Feb, 2018 1 commit