Skip to content
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

Fixed Magento not detecting HTTPS behind a proxy. #1081

Merged
merged 2 commits into from
Jul 23, 2020

Conversation

wexo-team
Copy link
Contributor

This fix adds a check for the "HTTP_X_FORWARDED_PROTO" header to determine if the scheme is HTTPS or HTTP.

This fix adds a check for the "HTTP_X_FORWARDED_PROTO" header to determine if the scheme is HTTPS or HTTP.
@kkrieger85
Copy link
Contributor

As far as i can see, both classes inherit from Zend_Controller_Request_Http. So it might be better to do these changes in this class to avoid duplicate code.

@wexo-team
Copy link
Contributor Author

wexo-team commented Jul 2, 2020

Thank @kkrieger85,

I have now moved the fix into the class that you suggested :-)

Copy link
Contributor

@kkrieger85 kkrieger85 left a comment

Choose a reason for hiding this comment

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

Nice. Less code.

LGTM

@kkrieger85 kkrieger85 merged commit ab50c1b into OpenMage:1.9.4.x Jul 23, 2020
@sreichel
Copy link
Contributor

@kkrieger85 is it possible to use "squash merge" option for unified commit log?

@kkrieger85
Copy link
Contributor

kkrieger85 commented Jul 23, 2020 via email

@Flyingmana
Copy link
Contributor

can confirm of one case, where this did work and solve related Issues, thank you for providing the patch 😀

edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 20, 2020
Fixes Magento not detecting HTTPS behind a proxy.
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 24, 2020
Fixes Magento not detecting HTTPS behind a proxy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants