Skip to content

Commit

Permalink
fix for post ignore parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ikod committed May 4, 2016
1 parent 936aae1 commit 931b06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/requests/http.d
Original file line number Diff line number Diff line change
Expand Up @@ -1236,9 +1236,9 @@ public unittest {
info("Check POST json");
rs = rq.post("http://httpbin.org/post?b=x", `{"a":"☺ ", "c":[1,2,3]}`, "application/json");
assert(rs.code==200);
json = parseJSON(rs.responseBody).object["args"].object;
json = parseJSON(rs.responseBody.data).object["args"].object;
assert(json["b"].str == "x");
json = parseJSON(rs.responseBody).object["json"].object;
json = parseJSON(rs.responseBody.data).object["json"].object;
assert(json["a"].str == "");
assert(json["c"].array.map!(a=>a.integer).array == [1,2,3]);
{
Expand Down

0 comments on commit 931b06b

Please sign in to comment.