From 8fa16ce8953bb464765544cc1bd77ad42e269fba Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Mon, 25 Jan 2016 22:31:22 +0530 Subject: [PATCH] Remove restrictions based on request content --- libmproxy/console/common.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index db40201f5..a9bd846b0 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -287,10 +287,6 @@ def export_prompt(k, flow): def copy_as_curl_command(flow): - if flow.request.content is None or flow.request.content == CONTENT_MISSING: - signals.status_message.send(message="Request content is missing") - return - data = "curl " for k, v in flow.request.headers.fields: @@ -309,10 +305,6 @@ def copy_as_curl_command(flow): def copy_as_python_code(flow): - if flow.request.content is None or flow.request.content == CONTENT_MISSING: - signals.status_message.send(message="Request content is missing") - return - if flow.request.method != "GET": signals.status_message.send(message="Currently, only GET methods are supported") return @@ -334,12 +326,7 @@ def copy_as_python_code(flow): def copy_as_raw_request(flow): - if flow.request.content is None or flow.request.content == CONTENT_MISSING: - signals.status_message.send(message="Request content is missing") - return - data = netlib.http.http1.assemble_request(flow.request) - copy_to_clipboard_or_prompt(data)