Use signals.status_message for empty content

This commit is contained in:
Shadab Zafar 2016-01-13 16:36:44 +05:30
parent 0bb13c61d6
commit 1079e00641

View File

@ -282,7 +282,8 @@ def export_prompt(k, flow):
def copy_as_curl_command(flow):
if flow.request.content is None or flow.request.content == CONTENT_MISSING:
return None, "Request content is missing"
signals.status_message.send(message="Request content is missing")
return
data = "curl "