mirror of
https://github.com/rclone/rclone.git
synced 2025-12-22 11:13:23 +00:00
Update vendor directory
This commit is contained in:
22
vendor/github.com/ncw/swift/expect_continue.go
generated
vendored
Normal file
22
vendor/github.com/ncw/swift/expect_continue.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Show that we can use `Expect: 100-continue` in go versions >= 1.6
|
||||
//
|
||||
// +build go1.6
|
||||
|
||||
package swift
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// DisableExpectContinue indicates whether this version of go supports
|
||||
// expect continue.
|
||||
const DisableExpectContinue = false
|
||||
|
||||
// SetExpectContinueTimeout sets ExpectContinueTimeout in the
|
||||
// transport to the default value if not set.
|
||||
func SetExpectContinueTimeout(transport *http.Transport, t time.Duration) {
|
||||
if transport.ExpectContinueTimeout == 0 {
|
||||
transport.ExpectContinueTimeout = t
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user