Skip to content

Commit f917f53

Browse files
Merge branch '4.4' into 5.4
* 4.4: [Workflow] Catch error when trying to get an uninitialized marking Add missing license header Use reference date in reverse transform Fixes #40997 Fix env resolution in lock configuration Fix Symfony not working on SMB share #45990 [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 [DependencyInjection] Add TaggedIteratorArgument unit tests
2 parents 3373e19 + b502408 commit f917f53

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)