Skip to content

Commit

Permalink
Merge pull request #42 from hhxsv5/master
Browse files Browse the repository at this point in the history
fix json encode without unescaped unicode
  • Loading branch information
hhxsv5 authored Apr 16, 2019
2 parents 52d326b + 6f7d0a5 commit 9a3d3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/GuzzleHttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function request(Request $request, $timeout = 30)
case Request::METHOD_POST:
if ($hasParam) {
$options['headers']['Content-Type'] = 'application/json';
$options['body'] = json_encode($params, JSON_UNESCAPED_SLASHES);
$options['body'] = json_encode($params, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
}
break;
default:
Expand Down

0 comments on commit 9a3d3fe

Please sign in to comment.