Skip to content

Commit

Permalink
Merge pull request #436 from City-of-Helsinki/UHF-7566_feed_delay
Browse files Browse the repository at this point in the history
UHF-7566: add keepalive to news requests
  • Loading branch information
rpnykanen authored Feb 10, 2023
2 parents 41b1bf6 + 694941d commit df6ab7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"drupal/update_helper": "^2.0",
"drupal/view_unpublished": "^1.0",
"drupal/views_bulk_edit": "^2.7",
"drupal/views_bulk_operations": "^4.1"
"drupal/views_bulk_operations": "^4.1",
"ext-curl": "*"
},
"conflict": {
"drupal/core-recommended": "<9.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ protected function request(
\GuzzleHttp\http_build_query($parameters),
]);

$content = $this->client->request('GET', $uri);
$content = $this->client->request('GET', $uri, [
'curl' => [CURLOPT_TCP_KEEPALIVE => TRUE],
]);
$json = \GuzzleHttp\json_decode($content->getBody()->getContents(), TRUE);
return $json['data'];
}
Expand Down

0 comments on commit df6ab7d

Please sign in to comment.