mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Refuse to replay a request with missing content.
This commit is contained in:
@@ -1494,9 +1494,11 @@ class FlowMaster(controller.Master):
|
||||
"""
|
||||
Returns None if successful, or error message if not.
|
||||
"""
|
||||
#begin nocover
|
||||
if f.intercepting:
|
||||
return "Can't replay while intercepting..."
|
||||
if f.request.content == CONTENT_MISSING:
|
||||
return "Can't replay request with missing content..."
|
||||
#begin nocover
|
||||
if f.request:
|
||||
f.request._set_replay()
|
||||
if f.request.content:
|
||||
|
||||
Reference in New Issue
Block a user