From 84963b42e2b0e7e9b311897d569b613675670955 Mon Sep 17 00:00:00 2001 From: marsien Date: Thu, 16 Apr 2026 13:58:56 +0000 Subject: [PATCH] Open fegen/docs/index.html as "rb" --- labeler/adapter/fastapi_srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labeler/adapter/fastapi_srv.py b/labeler/adapter/fastapi_srv.py index 6b0cf75..1aaf482 100644 --- a/labeler/adapter/fastapi_srv.py +++ b/labeler/adapter/fastapi_srv.py @@ -73,7 +73,7 @@ class LabelingBot: @app.get("/", response_class=HTMLResponse) async def root(): - with open("fegen/docs/index.html", "r") as f: + with open("fegen/docs/index.html", "rb") as f: index = f.read() return index