Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suslovsergey committed Jan 18, 2022
1 parent d5d2610 commit b34409b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apisix/model/plugin_multi_response_rewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ func (s PluginMultiResponseRewriteType) StateToMap(m map[string]interface{}) {

for _, v := range s.Variants {
variant := map[string]interface{}{}
utils.NumberTypeValueToMap(v.StatusCode, pluginValue, "status_code")
utils.StringTypeValueToMap(v.Body, pluginValue, "body")
utils.BoolTypeValueToMap(v.BodyBase64, pluginValue, "body_base64")
utils.MapTypeValueToMap(v.Headers, pluginValue, "headers")
utils.NumberTypeValueToMap(v.StatusCode, variant, "status_code")
utils.StringTypeValueToMap(v.Body, variant, "body")
utils.BoolTypeValueToMap(v.BodyBase64, variant, "body_base64")
utils.MapTypeValueToMap(v.Headers, variant, "headers")

varsStateToMap(v.Vars, pluginValue)
varsStateToMap(v.Vars, variant)
variants = append(variants, variant)
}
pluginValue["variants"] = variants
Expand Down

0 comments on commit b34409b

Please sign in to comment.