From 478a7cd09d936fdd44b50d1f4f3fa5fde1753988 Mon Sep 17 00:00:00 2001 From: Florent Viard Date: Mon, 2 Nov 2020 11:00:46 +0100 Subject: [PATCH] tools/har-to-old: Fixes typo in extracted file names ".response.txt" For a given web request, there use to be 2 metadata files generated: 001-200-3-request.txt 001-200-3-response.txt But, there is a typo in the code, and instead the generated files are: 001-200-3-request.txt 001-200-3.response.txt This change fixes the typo to get back the original behavior. --- tools/har-to-old.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/har-to-old.py b/tools/har-to-old.py index ccf28289bc..e5c2c02989 100755 --- a/tools/har-to-old.py +++ b/tools/har-to-old.py @@ -70,7 +70,7 @@ def extract(n, destdir): with open(f'{prefix}-request.txt', 'wb') as fd: write_request(entry, fd) - with open(f'{prefix}.response.txt', 'w') as fd: + with open(f'{prefix}-response.txt', 'w') as fd: write_response(entry, fd) with open(prefix, 'wb') as fd: write_body(entry, fd) -- GitLab