OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Create ossClient.go (#574)
[bytom/vapor.git]
/
vendor
/
github.com
/
aliyun
/
aliyun-oss-go-sdk
/
oss
/
redirect_1_7.go
1
// +build go1.7
2
3
package oss
4
5
import "net/http"
6
7
// http.ErrUseLastResponse only is defined go1.7 onward
8
func disableHTTPRedirect(client *http.Client) {
9
client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
10
return http.ErrUseLastResponse
11
}
12
}