Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
run: python -m pytest tests/test_contract_compatibility.py -q --tb=short

- name: Run full test suite
run: python -m pytest -q --tb=short
run: |
python -m pip install pytest-cov
python -m pytest -q --tb=short --cov=. --cov-report=xml

- name: Compile Python sources
run: python -m compileall autogen_starter autogen_dashboard maf_starter main.py -q
Expand Down
7 changes: 6 additions & 1 deletion maf_starter/devui_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ async def inject_route_assets(request, call_next):
body = b"".join([chunk async for chunk in response.body_iterator]).decode("utf-8")
if "codex-route-overrides" not in body:
body = body.replace("</head>", f"{ROUTE_STYLE}</head>")
return HTMLResponse(body, status_code=response.status_code, headers=dict(response.headers))

headers = dict(response.headers)
if "content-length" in headers:
del headers["content-length"]

return HTMLResponse(body, status_code=response.status_code, headers=headers)
Loading