Add message to ContentView metadata

This commit is contained in:
Yoav Shai 2019-12-05 22:36:26 +02:00
parent 1f91f5ce12
commit 056a9024ec

View File

@ -103,6 +103,7 @@ def get_message_content_view(viewname, message):
metadata["query"] = message.query metadata["query"] = message.query
if isinstance(message, http.Message): if isinstance(message, http.Message):
metadata["headers"] = message.headers metadata["headers"] = message.headers
metadata["message"] = message
description, lines, error = get_content_view( description, lines, error = get_content_view(
viewmode, content, **metadata viewmode, content, **metadata