Skip to content

Commit

Permalink
Update HttpAsset.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba Płaskonka authored Mar 5, 2020
1 parent 5486bc3 commit 534926a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PimcoreDevkitBundle/Wrapper/HttpAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(
string $filename = null,
string $defaultFileType = 'txt'
) {
$this->response = $httpClient->request('GET', $url, ['timeout' => 5]);
$this->response = $httpClient->request('GET', $url, ['timeout' => 5, 'connect_timeout' => 2]);
$statusCode = $this->response->getStatusCode();

if ($statusCode != 200) {
Expand Down

0 comments on commit 534926a

Please sign in to comment.