Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable redirect handling in the adapter.
Redirect handling has been moved into the client because of cookie handling issues. See #10876
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e0910ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markstory I left that untouched intentionally in order to keep BC. But maybe that's not an issue, as this class is used rather internally.
e0910ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you leave it in, the cookie issue won't be fixed as the PHP stream layer will still follow redirects.
e0910ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's why I unset the option:
cakephp/src/Http/Client.php
Line 378 in bcd9407
e0910ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So then its double disabled now 😄
e0910ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markstory I'm just wondering if this change won't break someone's code.
e0910ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt it. If it does, we'll have to deal with that.