def http_response(self, request, response): if not hasattr(response, "seek"): response = seek_wrapper(response) _debug(response.read()) _debug("*****************************************************") response.seek(0) return response
def http_response(self, request, response): if not hasattr(response, "seek"): response = seek_wrapper(response) # grab HTTP-EQUIV headers and add them to the true HTTP headers headers = response.info() for hdr, val in parse_head(response): headers[hdr] = val response.seek(0) return response
def http_response(self, request, response): if not hasattr(response, "seek"): return seek_wrapper(response) return response