mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-10 18:08:08 -04:00
⬆ Upgrade Starlette from 0.18.0 to 0.19.0 (#4488)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9090c771ee
commit
86fa3cb24f
@@ -12,8 +12,9 @@ class HTTPException(StarletteHTTPException):
|
||||
detail: Any = None,
|
||||
headers: Optional[Dict[str, Any]] = None,
|
||||
) -> None:
|
||||
super().__init__(status_code=status_code, detail=detail)
|
||||
self.headers = headers
|
||||
super().__init__(
|
||||
status_code=status_code, detail=detail, headers=headers # type: ignore
|
||||
)
|
||||
|
||||
|
||||
RequestErrorModel: Type[BaseModel] = create_model("Request")
|
||||
|
||||
Reference in New Issue
Block a user