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

Fix #8086 (BestStandardsSupport rewrites app X-UA-Compatible header) #8093

Merged

Conversation

nikitug
Copy link
Contributor

@nikitug nikitug commented Nov 1, 2012

Now BestStandardsSupport middleware appends it's X-UA-Compatible value to app's value.
Also test for BestStandardsSupport middleware added.

@nikitug
Copy link
Contributor Author

nikitug commented Nov 1, 2012

Will probably need a 3.2 backport

@carlosantoniodasilva
Copy link
Member

Looks good. It needs a changelog entry, thanks!

…der, now appends).

Now `BestStandardsSupport` middleware appends it's `X-UA-Compatible` value to app's value.
Also test for `BestStandardsSupport` middleware added.
@nikitug
Copy link
Contributor Author

nikitug commented Nov 1, 2012

@carlosantoniodasilva thanks, done. Do it need a backport?


expects = "requiresActiveX=true,IE=Edge,chrome=1"
assert_equal expects, headers["X-UA-Compatible"]
end

Choose a reason for hiding this comment

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

What happens if you give it false, but has X-UA-Compatible set in the app? Will it override the users' value?

Choose a reason for hiding this comment

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

Anyway, don't worry, the middleware is not added if the config is false.

carlosantoniodasilva added a commit that referenced this pull request Nov 1, 2012
Fix #8086 (BestStandardsSupport rewrites app X-UA-Compatible header)
@carlosantoniodasilva carlosantoniodasilva merged commit 69cebae into rails:master Nov 1, 2012
@carlosantoniodasilva
Copy link
Member

@nikitug I think it can be backported without problem yeah, but we will need to wait until 3.2.9 is released. Thanks!

carlosantoniodasilva added a commit that referenced this pull request Nov 8, 2012
Fix #8086 (BestStandardsSupport rewrites app X-UA-Compatible header)

Conflicts:
	actionpack/CHANGELOG.md
@carlosantoniodasilva
Copy link
Member

Backported in 90a5ec7, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants