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

Commit

Permalink
add response.headers to result
Browse files Browse the repository at this point in the history
  • Loading branch information
yz01063552 authored and peze committed Dec 14, 2021
1 parent ffcca3c commit 462af51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ func (client *Client) DoRequest(action *string, protocol *string, method *string
if _err != nil {
return _result, _err
}

res := util.AssertAsMap(obj)
if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) {
_err = tea.NewSDKError(map[string]interface{}{
Expand All @@ -412,6 +411,7 @@ func (client *Client) DoRequest(action *string, protocol *string, method *string
}

_result = res
_result["_headers"] = response_.Headers
return _result, _err
}()
if !tea.BoolValue(tea.Retryable(_err)) {
Expand Down

0 comments on commit 462af51

Please sign in to comment.