Skip to content

Commit

Permalink
pkp/pkp-lib#6088 Fix array_merge on unknown variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jul 28, 2021
1 parent f97cab2 commit f8d5d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PLNPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,10 @@ protected function _sendFile($method, $url, $filename) {
$httpClient = Application::get()->getHttpClient();
try {
$response = $httpClient->request($method, $url, [
'headers' => array_merge($headers, [
'headers' => [
'Content-Type' => mime_content_type($filename),
'Content-Length' => filesize($filename),
]),
],
'body' => fopen($filename, 'r'),
]);
} catch (GuzzleHttp\Exception\RequestException $e) {
Expand Down

0 comments on commit f8d5d8c

Please sign in to comment.