diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d4b1dba4340..7a34e15c9bd 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -24,8 +24,8 @@ entertain early in the review process. Thank you in advance! ## Related issue number - - + + ## Checklist diff --git a/aiohttp/_http_parser.pyx b/aiohttp/_http_parser.pyx index de986c9dbc7..6bf125c06e9 100644 --- a/aiohttp/_http_parser.pyx +++ b/aiohttp/_http_parser.pyx @@ -506,10 +506,10 @@ cdef class HttpParser: if self._payload is not None: if self._cparser.flags & cparser.F_CHUNKED: raise TransferEncodingError( - "Not enough data for satisfy transfer length header.") + "Not enough data to satisfy transfer length header.") elif self._cparser.flags & cparser.F_CONTENT_LENGTH: raise ContentLengthError( - "Not enough data for satisfy content length header.") + "Not enough data to satisfy content length header.") elif cparser.llhttp_get_errno(self._cparser) != cparser.HPE_OK: desc = cparser.llhttp_get_error_reason(self._cparser) raise PayloadEncodingError(desc.decode('latin-1')) diff --git a/aiohttp/http_exceptions.py b/aiohttp/http_exceptions.py index 2b6d50cf980..51f19166d40 100644 --- a/aiohttp/http_exceptions.py +++ b/aiohttp/http_exceptions.py @@ -69,7 +69,7 @@ class TransferEncodingError(PayloadEncodingError): class ContentLengthError(PayloadEncodingError): - """Not enough data for satisfy content length header.""" + """Not enough data to satisfy content length header.""" class LineTooLong(BadHttpMessage): diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py index ba648eb6bd8..8805319e309 100644 --- a/aiohttp/http_parser.py +++ b/aiohttp/http_parser.py @@ -792,11 +792,11 @@ def feed_eof(self) -> None: self.payload.feed_eof() elif self._type == ParseState.PARSE_LENGTH: raise ContentLengthError( - "Not enough data for satisfy content length header." + "Not enough data to satisfy content length header." ) elif self._type == ParseState.PARSE_CHUNKED: raise TransferEncodingError( - "Not enough data for satisfy transfer length header." + "Not enough data to satisfy transfer length header." ) def feed_data(