Skip to content

Commit

Permalink
httpRequest - allow replace response content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
navrotskyj committed Oct 11, 2019
1 parent 2c8f6dc commit 6a8e9e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/call/http_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ func HttpRequest(c *Call, args interface{}) error {
return nil
}

str = res.Header.Get("content-type")
if str = getStringValueFromMap("parser", props, ""); str == "" {
str = res.Header.Get("content-type")
}

if strings.Index(str, "application/json") > -1 {
if _, ok = props["exportVariables"]; ok {
if _, ok = props["exportVariables"].(map[string]interface{}); ok {
Expand Down

0 comments on commit 6a8e9e6

Please sign in to comment.