Skip to content

Commit dad2379

Browse files
committed
fix missing type change
1 parent 8fff438 commit dad2379

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ld_eventsource/actions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,16 @@ def error(self) -> Optional[Exception]:
161161
return self.__error
162162

163163
@property
164-
def headers(self) -> Optional[Dict[str, Any]]:
164+
def headers(self) -> Optional[Headers]:
165165
"""
166166
The HTTP response headers from the failed connection, if available.
167167
168168
This property returns headers when the error is an exception that includes them,
169169
such as :class:`.HTTPStatusError` or :class:`.HTTPContentTypeError`. For other
170170
error types or when the stream ended normally, this returns ``None``.
171171
172+
Header name lookups are case-insensitive per RFC 7230.
173+
172174
:return: the response headers, or ``None`` if not available
173175
"""
174176
if isinstance(self.__error, ExceptionWithHeaders):

0 commit comments

Comments
 (0)