Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from Jerry-yz/master
Browse files Browse the repository at this point in the history
add headers
  • Loading branch information
peze authored Dec 16, 2021
2 parents 6d603a7 + 3f9d83e commit 8cb3984
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ func (client *Client) DoRequest(action *string, protocol *string, method *string
return _result, _err
}
res := util.AssertAsMap(obj)
res["_headers"] = response_.Headers
if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) {
_err = tea.NewSDKError(map[string]interface{}{
"code": tea.ToString(DefaultAny(res["Code"], res["code"])),
Expand Down

0 comments on commit 8cb3984

Please sign in to comment.