Refuse to replay a request with missing content.

This commit is contained in:
Aldo Cortesi
2012-05-16 18:24:32 +12:00
parent b3901a7652
commit 0a90a3eaba
2 changed files with 13 additions and 1 deletions

View File

@@ -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: