Skip to content

Commit

Permalink
re #1801: remove enable_compression completely as it isn't used in Plone
Browse files Browse the repository at this point in the history
  • Loading branch information
tlotze committed Oct 3, 2018
1 parent 778aa48 commit 4420a7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ New features:
- Add test for Revert to Revision action in History Viewlet
[davilima6]

- Reimplement enable_http_compression to replace skin script. #1801
- Remove ``enable_compression`` method that isn't used in Plone. #1801
[tlotze]

Bug fixes:
Expand Down
4 changes: 0 additions & 4 deletions plone/app/layout/viewlets/httpheaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ class HTTPCachingHeaders(HeaderViewlet):
"""Replace the old global_cache_settings/macros/cacheheaders
"""

def enable_compression(self):
"""Call to activate gzip"""
self.request.RESPONSE.enableHTTPCompression(REQUEST=self.request)

def getHeaders(self):
lang = getattr(self.context, 'Language', None)
if callable(lang):
Expand Down

0 comments on commit 4420a7a

Please sign in to comment.