Skip to content

Commit 3a6e68b

Browse files
Merge branch '7.4' into 8.0
* 7.4: [DependencyInjection][Routing] Fix nested config imports when returning PHP arrays fix compatibility with Relay 0.12.1 [TypeInfo] Fix resolving use statements with line breaks [FrameworkBundle] Fix normalization of enums in workflow transitions Add missing return type for docblock Closure don't use a fixed date fixture when assertions depend on relative times [FrameworkBundle] Fix secrets:encrypt-from-local [Security] Add support for `Sec-Fetch-Site` to `SameOriginCsrfTokenManager` [Console] Optimize mostRecentlyEnteredValue() method [HttpClient] Add QUERY to the list of retriable HTTP methods Update regular expression in URL validator [AssetMapper] Fix parsing @import that don't use url() [Messenger] Add retry delay on amazon sqs [Serializer] CsvEncoder to escape values starting with line feed when escape formulas is enabled
2 parents 3682dd5 + 47ed7b5 commit 3a6e68b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ CHANGELOG
1111
7.4
1212
---
1313

14-
* Deprecate using amphp/http-client < 5
1514
* Add RFC 9111–based caching support to `CachingHttpClient`
16-
* Deprecate passing an instance of `StoreInterface` as `$cache` argument to `CachingHttpClient` constructor
1715
* Add option `auto_upgrade_http_version` to control how the request HTTP version is handled in `HttplugClient` and `Psr18Client`
16+
* Add QUERY to the list of retriable HTTP methods
17+
* Deprecate using amphp/http-client < 5
18+
* Deprecate passing an instance of `StoreInterface` as `$cache` argument to `CachingHttpClient` constructor
1819

1920
7.3
2021
---

Response/CurlResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct(
7979

8080
if (!$info['response_headers']) {
8181
// Used to keep track of what we're waiting for
82-
curl_setopt($ch, \CURLOPT_PRIVATE, \in_array($method, ['GET', 'HEAD', 'OPTIONS', 'TRACE'], true) && 1.0 < (float) ($options['http_version'] ?? 1.1) ? 'H2' : 'H0'); // H = headers + retry counter
82+
curl_setopt($ch, \CURLOPT_PRIVATE, \in_array($method, ['GET', 'HEAD', 'OPTIONS', 'TRACE', 'QUERY'], true) && 1.0 < (float) ($options['http_version'] ?? 1.1) ? 'H2' : 'H0'); // H = headers + retry counter
8383
}
8484

8585
curl_setopt($ch, \CURLOPT_HEADERFUNCTION, static function ($ch, string $data) use (&$info, &$headers, $options, $multi, $id, &$location, $resolveRedirect, $logger): int {

Retry/GenericRetryStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class GenericRetryStrategy implements RetryStrategyInterface
2424
{
25-
public const IDEMPOTENT_METHODS = ['GET', 'HEAD', 'PUT', 'DELETE', 'OPTIONS', 'TRACE'];
25+
public const IDEMPOTENT_METHODS = ['GET', 'HEAD', 'PUT', 'DELETE', 'OPTIONS', 'TRACE', 'QUERY'];
2626
public const DEFAULT_RETRY_STATUS_CODES = [
2727
0 => self::IDEMPOTENT_METHODS, // for transport exceptions
2828
423,

0 commit comments

Comments
 (0)