Reflect that headers are non-optional in _get_encoding_from_headers().

This commit is contained in:
Chris Jerdonek 2019-09-21 01:33:25 -07:00
parent 6c9e0c2536
commit ec892cec97
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ def _get_html_response(url, session):
def _get_encoding_from_headers(headers):
# type: (Optional[ResponseHeaders]) -> Optional[str]
# type: (ResponseHeaders) -> Optional[str]
"""Determine if we have any encoding information in our headers.
"""
if headers and "Content-Type" in headers: