"""Replaces SSI include with contents rendered by relevant view."""
path = process_value(match.group('path'))
func, args, kwargs = resolve(path)
"""Replaces SSI include with contents rendered by relevant view."""
path = process_value(match.group('path'))
func, args, kwargs = resolve(path)
request.META['PATH_INFO'] = request.path_info = \
request.path = parsed.path
request.META['QUERY_STRING'] = parsed.query
request.META['PATH_INFO'] = request.path_info = \
request.path = parsed.path
request.META['QUERY_STRING'] = parsed.query
- content = func(request, *args, **kwargs).content
+ request.ssi_vars_needed = {}
+
+ content = func(request, *args, **kwargs).content.decode('ascii')
response['Content-Length'] = len(response.content)
def process_response(self, request, response):
response['Content-Length'] = len(response.content)
def process_response(self, request, response):