From 8e483314d82484400daf66c0db843b6850bff4a7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 6 Nov 2017 02:15:56 +0000 Subject: [PATCH] show not parsed content --- pol/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pol/server.py b/pol/server.py index 4285b2c..3269f63 100755 --- a/pol/server.py +++ b/pol/server.py @@ -184,10 +184,10 @@ class Downloader(object): if selector_defer: selector_defer.callback(response) else: - self.writeResponse(request, response, feed_config) + self.writeResponse(request, response, feed_config, response_str) self.run_memon() - def writeResponse(self, request, response, feed_config): + def writeResponse(self, request, response, feed_config, response_str='PolitePol: Local page processing is failed'): response = HttpCompressionMiddleware().process_response(Request(response.url), response, None) response = DecompressionMiddleware().process_response(None, response, None)