mirror of https://github.com/encode/starlette.git
Replace `dict` by `Mapping` on `HTTPException.headers` (#2749)
This commit is contained in:
parent
427a8dcf35
commit
cc1e2d7a2f
|
@ -12,7 +12,7 @@ class HTTPException(Exception):
|
|||
self,
|
||||
status_code: int,
|
||||
detail: str | None = None,
|
||||
headers: dict[str, str] | None = None,
|
||||
headers: typing.Mapping[str, str] | None = None,
|
||||
) -> None:
|
||||
if detail is None:
|
||||
detail = http.HTTPStatus(status_code).phrase
|
||||
|
|
Loading…
Reference in New Issue