Skip to content
Merged
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
5 changes: 3 additions & 2 deletions taskiq_fastapi/initializator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import copy
from typing import Any, Awaitable, Callable, Mapping, Optional, Union

from fastapi import FastAPI, Request
Expand Down Expand Up @@ -112,10 +113,10 @@ def populate_dependency_context(
broker.dependency_overrides.update(
{
Request: lambda: Request(
scope={"app": app, "type": "http", "state": asgi_state},
scope={"app": app, "type": "http", "state": copy.copy(asgi_state)},
),
HTTPConnection: lambda: HTTPConnection(
scope={"app": app, "type": "http", "state": asgi_state},
scope={"app": app, "type": "http", "state": copy.copy(asgi_state)},
),
},
)