1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-03 17:13:18 +00:00

Add missing vendor files

This commit is contained in:
Nick Craig-Wood
2016-11-06 10:40:40 +00:00
parent 23b8f008e0
commit 5f320cc540
7 changed files with 1483 additions and 0 deletions

19
vendor/golang.org/x/net/context/ctxhttp/cancelreq.go generated vendored Normal file
View File

@@ -0,0 +1,19 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build go1.5
package ctxhttp
import "net/http"
func canceler(client *http.Client, req *http.Request) func() {
// TODO(djd): Respect any existing value of req.Cancel.
ch := make(chan struct{})
req.Cancel = ch
return func() {
close(ch)
}
}