We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ef242b commit 045ee26Copy full SHA for 045ee26
lib/Elastica/Transport/Http.php
@@ -122,13 +122,13 @@ public function exec(Request $request, array $params)
122
}
123
124
if (is_array($data)) {
125
- $content = JSON::stringify($data, 'JSON_ELASTICSEARCH');
+ $content = JSON::stringify($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
126
} else {
127
$content = $data;
128
- }
129
130
- // Escaping of / not necessary. Causes problems in base64 encoding of files
131
- $content = str_replace('\/', '/', $content);
+ // Escaping of / not necessary. Causes problems in base64 encoding of files
+ $content = str_replace('\/', '/', $content);
+ }
132
133
if ($connection->hasCompression()) {
134
// Compress the body of the request ...
0 commit comments