diff --git a/rendertron/middleware/base.py b/rendertron/middleware/base.py index fa097e9..efe284d 100644 --- a/rendertron/middleware/base.py +++ b/rendertron/middleware/base.py @@ -72,13 +72,13 @@ def render_url(self, url, request): try: with urlopen(proxy_url) as response: - if response.code == 200: # What about other 'ok' codes? - data = response.read() - # Should we store the response code, headers etc? - metas = ["code", "reason", "status"] - meta = {key: getattr(response, key) for key in metas} - self.storage.store_response(request, data, meta) - return data, meta + data = response.read() + print("hello", data) + # Should we store the response code, headers etc? + metas = ["code", "reason", "status"] + meta = {key: getattr(response, key) for key in metas} + self.storage.store_response(request, data, meta) + return data, meta except Exception: pass return None, None