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

Bugfix: Fix for not respected alternative headers in maintenance mode #7864

Merged
merged 1 commit into from
Mar 14, 2017
Merged

Conversation

cmuench
Copy link
Contributor

@cmuench cmuench commented Dec 18, 2016

If alternative headers were defined by di.xml it's not respected in
maintenance mode.

Example di.xml:

 <type name="Magento\Framework\HTTP\PhpEnvironment\RemoteAddress">
    <arguments>
        <argument name="alternativeHeaders" xsi:type="array">
            <item name="HTTP_X_FORWARED_FOR" xsi:type="string">HTTP_X_FORWARED_FOR</item>
        </argument>
    </arguments>
</type>

If alternative headers were defined by di.xml it's not respected in
maintenance mode.

Example di.xml:

     <type name="Magento\Framework\HTTP\PhpEnvironment\RemoteAddress">
        <arguments>
            <argument name="alternativeHeaders" xsi:type="array">
                <item name="HTTP_X_FORWARED_FOR" xsi:type="string">HTTP_X_FORWARED_FOR</item>
            </argument>
        </arguments>
    </type>

Use class constant

Fixed line length
@vrann vrann self-assigned this Mar 6, 2017
@vrann vrann added this to the March 2017 milestone Mar 6, 2017
@magento-team magento-team merged commit 5dc15b1 into magento:develop Mar 14, 2017
@vrann
Copy link
Contributor

vrann commented Mar 14, 2017

@cmuench PR was merged, thanks!

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