Commit 79895ff3 authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by GitHub

Streaming expressions tend to be very long. Therfore we use the 'postbigrequest' plugin. (#584)

Streaming expressions tend to be very long. Therfore we force the 'postbigrequest' plugin.
parent 8bcc392b
......@@ -34,7 +34,7 @@ class Client extends CoreClient
*
* @var string
*/
const VERSION = '3.8.0';
const VERSION = '4.0.0';
/**
* Check for an exact version.
......
......@@ -1166,6 +1166,10 @@ class Client extends Configurable implements ClientInterface
*/
public function createStream($options = null)
{
// Streaming expressions tend to be very long. Therfore we use the 'postbigrequest' plugin. The plugin needs to
// be loaded before the request is created.
$this->getPlugin('postbigrequest');
return $this->createQuery(self::QUERY_STREAM, $options);
}
......@@ -1178,6 +1182,10 @@ class Client extends Configurable implements ClientInterface
*/
public function createGraph($options = null)
{
// Streaming expressions tend to be very long. Therfore we use the 'postbigrequest' plugin. The plugin needs to
// be loaded before the request is created.
$this->getPlugin('postbigrequest');
return $this->createQuery(self::QUERY_GRAPH, $options);
}
......
......@@ -24,7 +24,6 @@ class RequestBuilder implements RequestBuilderInterface
$request->setHandler($query->getHandler());
$request->addParam('expr', $query->getExpression());
$request->addParams($query->getParams());
$request->setMethod(Request::METHOD_POST);
$request->addHeader('Content-Type: text/plain; charset=utf-8');
return $request;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment