Skip to content

Commit

Permalink
fix vibe seg fault with json
Browse files Browse the repository at this point in the history
  • Loading branch information
Szabo Bogdan committed Aug 2, 2017
1 parent 9159dce commit 094406a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vibe/fluentasserts/vibe/request.d
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ final class RequestRouter
}
else static if (is(T == Json))
{
preparedRequest.json = data;
return send(data.to!string);
send(data.toPrettyString);
preparedRequest.json = data.toPrettyString.parseJsonString;
return send(data.toPrettyString);
}
else
{
Expand Down Expand Up @@ -226,6 +227,7 @@ final class RequestRouter
callback(response)();

performExpected(response);

}

void checkResponse(ref string data) {
Expand Down

0 comments on commit 094406a

Please sign in to comment.