Skip to content

Commit

Permalink
fixed double encoding bug on optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
bp0lr committed Oct 1, 2020
1 parent 4339226 commit 1fe0cd5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/optimization/optimization.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ func MakeRequestQuery(target, param, payload, ptype string, pAction string, pEnc
tempMap["payload"] = payload
tempMap["param"] = param

if(tempMap["type"] != "toOpenRedirecting") {
payload = url.QueryEscape(payload)
}

u, _ := url.Parse(target)

var tempParam string
Expand Down Expand Up @@ -123,7 +119,7 @@ func MakeRequestQuery(target, param, payload, ptype string, pAction string, pEnc
//if the parameter doesn't exist, is added.
paramList.Add(tempMap["param"], payload)
}

var rst *http.Request
if(options.Data == ""){
u.RawQuery = paramList.Encode()
Expand Down

0 comments on commit 1fe0cd5

Please sign in to comment.