lib/Elastica/Transport/Guzzle.php 1 location
|
@@ 132-135 (lines=4) @@
|
129 |
|
$req = $req->withMethod(Request::POST); |
130 |
|
} |
131 |
|
|
132 |
|
if ($this->hasParam('postWithRequestBody') && $this->getParam('postWithRequestBody') == true) { |
133 |
|
$request->setMethod(Request::POST); |
134 |
|
$req = $req->withMethod(Request::POST); |
135 |
|
} |
136 |
|
|
137 |
|
$req = $req->withBody( |
138 |
|
Psr7\stream_for(is_array($data) |
lib/Elastica/Transport/HttpAdapter.php 1 location
|
@@ 116-119 (lines=4) @@
|
113 |
|
$method = ElasticaRequest::POST; |
114 |
|
} |
115 |
|
|
116 |
|
if ($this->hasParam('postWithRequestBody') && $this->getParam('postWithRequestBody') == true) { |
117 |
|
$elasticaRequest->setMethod(ElasticaRequest::POST); |
118 |
|
$method = ElasticaRequest::POST; |
119 |
|
} |
120 |
|
|
121 |
|
if (is_array($data)) { |
122 |
|
$body = JSON::stringify($data, JSON_UNESCAPED_UNICODE); |