mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
bugfix: set repsonse attribute
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user