Skip to content

Commit

Permalink
Merge pull request #154 from plone/hvelarde-headers
Browse files Browse the repository at this point in the history
Get rid of obsolete X-UA-Compatible header
  • Loading branch information
jensens authored Aug 3, 2018
2 parents 182d45e + 3e5db36 commit f666880
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ New features:

Bug fixes:

- *add item here*
- Get rid of obsolete ``X-UA-Compatible`` header.
[hvelarde]


2.8.1 (2018-06-18)
Expand Down
8 changes: 0 additions & 8 deletions plone/app/layout/viewlets/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,6 @@
permission="zope.Public"
/>

<!-- X-UA-Compatible -->
<browser:viewlet
name="plone.xuacompatible"
manager=".interfaces.IHTTPHeaders"
class=".httpheaders.XUACompatible"
permission="zope.Public"
/>

<!-- The portal header -->
<browser:viewlet
name="plone.header"
Expand Down
7 changes: 0 additions & 7 deletions plone/app/layout/viewlets/httpheaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ def getHeaders(self):
('Expires', 'Sat, 1 Jan 2000 00:00:00 GMT'),
('Content-Language', lang)
]


class XUACompatible(HeaderViewlet):
"""set the header ('X-UA-Compatible', 'IE=edge');"""

def getHeaders(self):
return [('X-UA-Compatible', 'IE=edge')]

0 comments on commit f666880

Please sign in to comment.