Skip to content

Commit

Permalink
return response status as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Olament committed Mar 31, 2021
1 parent df88bfc commit 551a01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftw_compatible_tool/web_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def execute():
response = HTTPResponse(FakeSocket(
raw_response.encode('ascii', 'ignore')))
response.begin()
payload["result"] = response.status
payload["result"] = str(response.status)
if response.getheader("x-fd-int-waf-rule-hits"): # parse AFD's hitrule
payload["hitRule"] = response.getheader(
"x-fd-int-waf-rule-hits")
Expand Down

0 comments on commit 551a01a

Please sign in to comment.