Skip to content

Commit c5cf828

Browse files
committed
fix astaxie#13 GET params not correct
1 parent db903de commit c5cf828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func getHTTP(method string, url string, args []string) (r *httplib.BeegoHttpRequ
8080
}
8181
strs[1] = string(content)
8282
}
83-
if form {
83+
if form || method == "GET" {
8484
r.Param(strs[0], strs[1])
8585
} else {
8686
jsonmap[strs[0]] = strs[1]

0 commit comments

Comments
 (0)