fix(api): Remove redundant definition of headers

This commit is contained in:
AaronBenDaniel
2025-06-05 14:26:39 -04:00
parent 6a9b703f50
commit 8457d3786f
-4
View File
@@ -33,10 +33,6 @@ from create_book import (
app = FastAPI()
BUILD_PATH = Path(__file__).parent / "build"
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
}
class RequestCancelledMiddleware:
# Thanks https://github.com/fastapi/fastapi/discussions/11360#discussion-6427734