bugfix: set repsonse attribute

This commit is contained in:
debugtalk
2018-07-26 22:33:35 +08:00
parent 20015ca10a
commit 4771dd272e
3 changed files with 82 additions and 0 deletions

View File

@@ -102,3 +102,4 @@ def alter_response(response):
response.status_code = 500
response.headers["Content-Type"] = "html/text"
response.json["headers"]["Host"] = "127.0.0.1:8888"
response.attributes["new_attribute"] = "new_attribute"