diff --git a/AUTHORS.rst b/AUTHORS.rst index f7561a6..e852d78 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -16,5 +16,4 @@ Development Lead Contributors ------------ -None yet. Why not be the first? - +* Ashley Wilson diff --git a/responsive/middleware.py b/responsive/middleware.py index 2821634..ce0e1c0 100644 --- a/responsive/middleware.py +++ b/responsive/middleware.py @@ -56,8 +56,8 @@ def process_response(self, request, response): 'cookie_age': 60 * 60 * 24 * settings.RESPONSIVE_COOKIE_AGE, # convert to secs 'cookie_expires': expires.strftime('%a, %d %b %Y %H:%M:%S GMT') }) - pattern = re.compile(b'', re.IGNORECASE) - response.content = pattern.sub(b'' + smart_bytes(snippet), response.content) + pattern = re.compile(b'', re.IGNORECASE) + response.content = pattern.sub(b'>' + smart_bytes(snippet), response.content) if response.get('Content-Length', None): response['Content-Length'] = len(response.content)