Skip to content

The agent that turns websites into APIs!

Update src/reverse_api/native_host.py

Muhammed Mustafa AKŞAM6734c35e58b7
diff --git a/src/reverse_api/native_host.py b/src/reverse_api/native_host.py
index 20aaca4..bad342c 100644
--- a/src/reverse_api/native_host.py
+++ b/src/reverse_api/native_host.py
@@ -356,7 +356,9 @@ class NativeHostHandler:
har_dir.mkdir(parents=True, exist_ok=True)
har_path = har_dir / "recording.har"
- # Save without indentation for performance (HAR files can be very large)
+ # Save without indentation to improve I/O performance and slightly reduce size.
+ # Note: If HAR data embeds response bodies, the overall file can still be very large;
+ # this function only controls JSON formatting, not how bodies are stored.
har_path.write_text(json.dumps(har_data, separators=(',', ':')))
self.current_run_id = run_id