1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Merge pull request #59 from MikeRoetgers/json_encode

Escaping forward slashes leads to 400 response
This commit is contained in:
Vincent Cassé 2017-04-10 21:49:02 +02:00 committed by GitHub
commit 473feb2497

View File

@ -256,7 +256,7 @@ class Api
$request = $request->withUri($url);
$body = "";
} elseif (isset($content)) {
$body = json_encode($content);
$body = json_encode($content, JSON_UNESCAPED_SLASHES);
$request->getBody()->write($body);
} else {