diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-04-10 11:55:41 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-04-10 11:55:41 +0300 |
commit | ce2ec99d890f1b24b468abbe7ff76fe14d9c567a (patch) | |
tree | 560cba7efae774f8472282bad04a6859f94471cc /lib | |
parent | a62004dbd52396ba1f4a8275cafa32f6f07a2e53 (diff) |
Remove legacy guzzle call
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Preview/Office.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Preview/Office.php b/lib/Preview/Office.php index a94f8a6c..d80c83cc 100644 --- a/lib/Preview/Office.php +++ b/lib/Preview/Office.php @@ -67,11 +67,7 @@ abstract class Office extends Provider { $options['verify'] = false; } - if (version_compare($this->config->getSystemValue('version'), '14.0.0.0', '<')) { - $options['body'] = new \GuzzleHttp\Post\PostFile($path, $stream); // Since we upgraded guzzle in NC14 we have to do some dark magic here - } else { - $options['multipart'] = [['name' => $path, 'contents' => $stream]]; - } + $options['multipart'] = [['name' => $path, 'contents' => $stream]]; try { $response = $client->post($this->getWopiURL(). '/lool/convert-to/png', $options); |