#6394 converted SecurityHeadersMiddleware to pure ASGI but did not lock the property in. Add three guards: it must not be a BaseHTTPMiddleware (which would re-wrap streaming responses in an anyio task group and break is_disconnected), it must forward the ASGI receive channel untouched, and a StreamingResponse that polls is_disconnected must unwind cleanly on client disconnect with headers still applied. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_python_stack.py | ||
| LICENSE.AGPL-3.0 | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||