Skip to content

Commit bd781ea

Browse files
Merge branch '5.4' into 6.0
* 5.4: (21 commits) Add missing license header [Workflow] Catch error when trying to get an uninitialized marking Add missing license header Allow usage of Provider domains if possible Use reference date in reverse transform Fixes #40997 Fix env resolution in lock configuration Fix Symfony not working on SMB share #45990 [Messenger] DoctrineTransportFactory works with notify and decorated PostgreSQL driver [Cache] make LockRegistry use static properties instead of static variables fix: return-path has higher priority for envelope address than from address (fixes #41322) [HttpClient] Fix sending content-length when streaming the body [Console] Header with column max width is now well wrap with separator Fix use_cookies framework session configuration [FrameworkBundle] [Command] Fix `debug:router --no-interaction` error … [Intl] Update the ICU data to 71.1 - 5.4 [Intl] Update the ICU data to 71.1 - 4.4 Add tests to messenger connection get for OraclePlatform [RateLimiter] Adding default empty value [DependencyInjection] Add TaggedIteratorArgument unit tests [Process] Fix Process::getEnv() when setEnv() hasn't been called before ...
2 parents f74917e + f917f53 commit bd781ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

HttpClient/Test/HttpClientTestCase.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,16 @@ public function test304()
331331
$this->assertSame('', $response->getContent(false));
332332
}
333333

334-
public function testRedirects()
334+
/**
335+
* @testWith [[]]
336+
* [["Content-Length: 7"]]
337+
*/
338+
public function testRedirects(array $headers = [])
335339
{
336340
$client = $this->getHttpClient(__FUNCTION__);
337341
$response = $client->request('POST', 'http://localhost:8057/301', [
338342
'auth_basic' => 'foo:bar',
343+
'headers' => $headers,
339344
'body' => function () {
340345
yield 'foo=bar';
341346
},

0 commit comments

Comments
 (0)