Procházet zdrojové kódy

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

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao před 8 roky
rodič
revize
17aeefc133
2 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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
 2017-11-28 Version: 0.2.0
 1, AK2.0 & StsToken
 1, AK2.0 & StsToken
 
 

+ 1 - 1
sdk/client.go

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