vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
+3 -3
View File
@@ -17,6 +17,7 @@
package builder
import (
"encoding/json"
"errors"
"fmt"
"io"
@@ -29,7 +30,6 @@ import (
"unicode"
"github.com/pengsrc/go-shared/convert"
"github.com/pengsrc/go-shared/json"
"github.com/yunify/qingstor-sdk-go/request/data"
"github.com/yunify/qingstor-sdk-go/utils"
@@ -100,7 +100,7 @@ func (b *BaseBuilder) parseRequestQueryAndHeaders() error {
requestQuery := map[string]string{}
requestHeaders := map[string]string{}
maps := map[string](map[string]string){
"query": requestQuery,
"query": requestQuery,
"headers": requestHeaders,
}
@@ -177,7 +177,7 @@ func (b *BaseBuilder) parseRequestBody() error {
}
if len(requestData) != 0 {
dataValue, err := json.Encode(requestData, true)
dataValue, err := json.Marshal(requestData)
if err != nil {
return err
}
+9 -9
View File
@@ -75,24 +75,24 @@ func (qb *QingStorBuilder) BuildHTTPRequest(o *data.Operation, i *reflect.Value)
return nil, err
}
logger.Infof(fmt.Sprintf(
logger.Infof(nil, fmt.Sprintf(
"Built QingStor request: [%d] %s",
convert.StringToUnixTimestamp(httpRequest.Header.Get("Date"), convert.RFC822),
httpRequest.URL.String()),
)
httpRequest.URL.String(),
))
logger.Infof(fmt.Sprintf(
logger.Infof(nil, fmt.Sprintf(
"QingStor request headers: [%d] %s",
convert.StringToUnixTimestamp(httpRequest.Header.Get("Date"), convert.RFC822),
fmt.Sprint(httpRequest.Header)),
)
fmt.Sprint(httpRequest.Header),
))
if qb.baseBuilder.parsedBodyString != "" {
logger.Infof(fmt.Sprintf(
logger.Infof(nil, fmt.Sprintf(
"QingStor request body string: [%d] %s",
convert.StringToUnixTimestamp(httpRequest.Header.Get("Date"), convert.RFC822),
qb.baseBuilder.parsedBodyString),
)
qb.baseBuilder.parsedBodyString,
))
}
return httpRequest, nil