Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion httpdbg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.1.3"
__version__ = "2.1.4"

__all__ = ["export_html", "httprecord", "HTTPRecords"]

Expand Down
10 changes: 5 additions & 5 deletions httpdbg/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ def pyhttpdbg(

set_env_for_logging(params.log_level, params.log)

url = f"http://{params.host}:{params.port}/{'?hi=on' if params.console else ''}"

if not params.no_banner:
print_msg(f" httpdbg - HTTP(S) requests available at {url}")

sys.path.insert(0, "") # to mimic the default python command behavior

def run_recorder(
Expand All @@ -58,6 +53,11 @@ def run_recorder(
export_html(records, Path(params.export_html))

else:
url = f"http://{params.host}:{params.port}/{'?hi=on' if params.console else ''}"

if not params.no_banner:
print_msg(f" httpdbg - HTTP(S) requests available at {url}")

with httpdbg_srv(params.host, params.port) as records:

run_recorder(records, params.initiator, not params.only_client, test_mode)
Expand Down