Merge pull request #3738 from gergesh/add-message-to-contentview-headers

Add message to ContentView metadata
This commit is contained in:
Maximilian Hils 2019-12-05 22:08:03 +01:00 committed by GitHub
commit ab08a0def6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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