improve https rewriting

This commit is contained in:
Thomas Pointhuber 2014-09-14 14:17:12 +02:00
parent 6e6dbc1bb4
commit 0616d26feb
2 changed files with 7 additions and 2 deletions

View file

@ -247,6 +247,9 @@ def index():
# set new url
result['url'] = new_result_url
# target has matched, do not search over the other rules
break
if search.request_data.get('format', 'html') == 'html':
if 'content' in result:
result['content'] = highlight_content(result['content'],