8000 [BrowserKit] on followRedirect, client doesn't resend HTTP headers · Issue #7929 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[BrowserKit] on followRedirect, client doesn't resend HTTP headers #7929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Mihailoff opened this issue May 4, 2013 · 0 comments
Closed
Labels
BrowserKit Good first issue Ideal for your first contribution! (some Symfony experience may be required)

Comments

@Mihailoff
Copy link

In this simple case

$headers = array('HTTP_Content_Type' => 'application/vnd.custom+xml');
$crawler = $client->request($method, $uri, $params, array(), $headers);

when server returns redirect, Content-Type header will not be sent to new location.

fabpot added a commit that referenced this issue Aug 30, 2013
This PR was merged into the 2.2 branch.

Discussion
----------

[2.2] [BrowserKit] Pass headers when `followRedirect()` is called

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Tests pass?   | yes
| Fixed tickets | #7929
| License       | MIT

Commits
-------

0d07af8 [BrowserKit] Pass headers when `followRedirect()` is called
@fabpot fabpot closed this as completed Aug 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BrowserKit Good first issue Ideal for your first contribution! (some Symfony experience may be required)
Projects
None yet
Development

No branches or pull requests

2 participants
0