From b94bc76df293fbc4279135b7e625d9fc946f018d Mon Sep 17 00:00:00 2001 From: dragos-dumi Date: Wed, 11 Jan 2017 13:57:47 +0200 Subject: [PATCH] #474 - Using GET method when extracting remote file with stream.uri --- library/Solarium/QueryType/Extract/RequestBuilder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Solarium/QueryType/Extract/RequestBuilder.php b/library/Solarium/QueryType/Extract/RequestBuilder.php index 44ea86308..424756103 100644 --- a/library/Solarium/QueryType/Extract/RequestBuilder.php +++ b/library/Solarium/QueryType/Extract/RequestBuilder.php @@ -103,6 +103,7 @@ public function build(QueryInterface $query) $file = $query->getFile(); if (preg_match('/^(http|https):\/\/(.+)/i', $file)) { $request->addParam('stream.url', $file); + $request->setMethod(Request::METHOD_GET); } elseif (is_readable($file)) { $request->setFileUpload($file); $request->addParam('resource.name', basename($query->getFile()));