Skip to content
Permalink
Browse files

Merge pull request #11 from qiniu/develop

Release v7.0.3
  • Loading branch information...
xushiwei committed Jul 10, 2015
2 parents a144e7b + 2de301a commit 0224dd887c06fa9dc3818c6928f5910f139b1e31
Showing with 11 additions and 2 deletions.
  1. +5 −0 auth/qbox/qbox_auth.go
  2. +1 −1 kodo/main.go
  3. +1 −1 kodocli/main.go
  4. +4 −0 kodocli/resumable_base.go
@@ -120,6 +120,11 @@ func incBody(req *http.Request) bool {
return false
}

func (t *Transport) NestedObject() interface{} {

return t.Transport
}

func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error) {

token, err := t.mac.SignRequest(req, incBody(req))
@@ -101,7 +101,7 @@ func SetMac(accessKey, secretKey string) {

// ----------------------------------------------------------

// 设置所用这个SDK的应用程序名。userApp 必须满足 [A-Za-z0-9_\ \-\.]*
// 设置使用这个SDK的应用程序名。userApp 必须满足 [A-Za-z0-9_\ \-\.]*
//
func SetAppName(userApp string) error {

@@ -75,7 +75,7 @@ func MakeBaseUrl(domain, key string) (baseUrl string) {

// ----------------------------------------------------------

// 设置所用这个SDK的应用程序名。userApp 必须满足 [A-Za-z0-9_\ \-\.]*
// 设置使用这个SDK的应用程序名。userApp 必须满足 [A-Za-z0-9_\ \-\.]*
//
func SetAppName(userApp string) error {

@@ -22,6 +22,10 @@ type uptokenTransport struct {
Transport http.RoundTripper
}

func (t *uptokenTransport) NestedObject() interface{} {
return t.Transport
}

func (t *uptokenTransport) RoundTrip(req *http.Request) (resp *http.Response, err error) {
req.Header.Set("Authorization", t.token)
return t.Transport.RoundTrip(req)

0 comments on commit 0224dd8

Please sign in to comment.
You can’t perform that action at this time.