From 5759a103e17e3b5f193f26ab1c7e21fabc282fc2 Mon Sep 17 00:00:00 2001 From: FiveMovesAhead Date: Sun, 22 Dec 2024 23:20:26 +0800 Subject: [PATCH] Convert string to bytes. --- tig-benchmarker/master/master/submissions_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig-benchmarker/master/master/submissions_manager.py b/tig-benchmarker/master/master/submissions_manager.py index 3130390f..e941e560 100644 --- a/tig-benchmarker/master/master/submissions_manager.py +++ b/tig-benchmarker/master/master/submissions_manager.py @@ -53,7 +53,7 @@ def _post(self, submission_type: str, req: Union[SubmitPrecommitRequest, SubmitB 'Content-Encoding': 'br', 'Accept-Encoding': 'br', }) - data = brotli.compress(data) + data = brotli.compress(data.encode()) resp = requests.post(f"{api_url}/submit-{submission_type}", data=data, headers=headers) if resp.status_code == 200: logger.info(f"submitted {submission_type} successfully")