Explorar o código

由温仰发起的CORE SDK自动发布, BUILD_ID=101, 版本号:0.2.1

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao %!s(int64=8) %!d(string=hai) anos
pai
achega
17aeefc133
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 3 0
      ChangeLog.txt
  2. 1 1
      sdk/client.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2017-12-01 Version: 0.2.1
+1, Fix capitalizes the first letter in each word of header
+
 2017-11-28 Version: 0.2.0
 1, AK2.0 & StsToken
 

+ 1 - 1
sdk/client.go

@@ -184,7 +184,7 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r
 		return
 	}
 	for key, value := range request.GetHeaders() {
-		httpRequest.Header.Set(key, value)
+		httpRequest.Header[key] = []string{value}
 	}
 	httpResponse, err := client.httpClient.Do(httpRequest)
 	if err != nil {