Skip to content

Commit

Permalink
Merge branch '4.4' into 5.4
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nicolas-grekas committed Apr 12, 2022
2 parents 1a4f708 + 59f3762 commit ba6a9f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Test/HttpClientTestCase.php
Expand Up @@ -331,11 +331,16 @@ public function test304()
$this->assertSame('', $response->getContent(false));
}

public function testRedirects()
/**
* @testWith [[]]
* [["Content-Length: 7"]]
*/
public function testRedirects(array $headers = [])
{
$client = $this->getHttpClient(__FUNCTION__);
$response = $client->request('POST', 'http://localhost:8057/301', [
'auth_basic' => 'foo:bar',
'headers' => $headers,
'body' => function () {
yield 'foo=bar';
},
Expand Down

0 comments on commit ba6a9f0

Please sign in to comment.