Skip to content

Commit

Permalink
Correctly remove trace level options for HttpCache
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Feb 14, 2020
1 parent 7a6e3c0 commit 618cd80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/HttpClient/CachingHttpClient.php
Expand Up @@ -55,6 +55,8 @@ public function __construct(HttpClientInterface $client, StoreInterface $store,
unset($defaultOptions['allow_revalidate']);
unset($defaultOptions['stale_while_revalidate']);
unset($defaultOptions['stale_if_error']);
unset($defaultOptions['trace_level']);
unset($defaultOptions['trace_header']);

if ($defaultOptions) {
[, $this->defaultOptions] = self::prepareRequest(null, null, $defaultOptions, $this->defaultOptions);
Expand Down

0 comments on commit 618cd80

Please sign in to comment.