Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BrowserKit] Added isFollowingRedirects and getMaxRedirects methods #15697

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

Conversation

Naktibalda
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@fabpot
Copy link
Member

fabpot commented Sep 6, 2015

What is your use case?

@Naktibalda
Copy link
Contributor Author

Codeception/Codeception#2329

I want to intercept the redirect, do some actions and then follow the redirect.
My problem is that the instance of BrowserKit Client is public and following redirects can be disabled or limited by 3rd party code and I need to know that.

*
* @return bool
*/
public function getFollowRedirects()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this a boolean value it should be something like is[...]().
Eg: isRedirectFollowed()

@Naktibalda Naktibalda changed the title [BrowserKit] Added getFollowRedirects and getMaxRedirects methods [BrowserKit] Added isFollowingRedirects and getMaxRedirects methods Sep 12, 2015
@fabpot
Copy link
Member

fabpot commented Sep 26, 2015

Thank you @Naktibalda.

@fabpot fabpot closed this in 4a98f28 Sep 26, 2015
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants