Skip to content

Commit

Permalink
Spelling fixes (#5897)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored Oct 20, 2021
1 parent cd4c700 commit 816e0bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ Misc
- Added session's `raise_for_status` parameter, automatically calls
raise_for_status() on any request. (`#1724 <https://github.com/aio-libs/aiohttp/pull/1724>`_)

- `response.json()` raises `ClientReponseError` exception if response's
- `response.json()` raises `ClientResponseError` exception if response's
content type does not match (`#1723 <https://github.com/aio-libs/aiohttp/pull/1723>`_)

- Cleanup timer and loop handle on any client exception.
Expand Down
4 changes: 2 additions & 2 deletions aiohttp/http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def feed_data(
finally:
self._lines.clear()

def get_content_lenght() -> Optional[int]:
def get_content_length() -> Optional[int]:
# payload length
length_hdr = msg.headers.get(CONTENT_LENGTH)
if length_hdr is None:
Expand All @@ -332,7 +332,7 @@ def get_content_lenght() -> Optional[int]:

return length

length = get_content_lenght()
length = get_content_length()
# do not support old websocket spec
if SEC_WEBSOCKET_KEY1 in msg.headers:
raise InvalidHeader(SEC_WEBSOCKET_KEY1)
Expand Down
12 changes: 6 additions & 6 deletions tests/test_cookiejar.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def cookies_to_send():
"different-domain-cookie=sixth; Domain=different.org; "
"secure-cookie=seventh; Domain=secure.com; Secure; "
"no-path-cookie=eighth; Domain=pathtest.com; "
"path1-cookie=nineth; Domain=pathtest.com; Path=/; "
"path1-cookie=ninth; Domain=pathtest.com; Path=/; "
"path2-cookie=tenth; Domain=pathtest.com; Path=/one; "
"path3-cookie=eleventh; Domain=pathtest.com; Path=/one/two; "
"path4-cookie=twelfth; Domain=pathtest.com; Path=/one/two/; "
Expand All @@ -52,7 +52,7 @@ def cookies_to_send_with_expired():
"different-domain-cookie=sixth; Domain=different.org; "
"secure-cookie=seventh; Domain=secure.com; Secure; "
"no-path-cookie=eighth; Domain=pathtest.com; "
"path1-cookie=nineth; Domain=pathtest.com; Path=/; "
"path1-cookie=ninth; Domain=pathtest.com; Path=/; "
"path2-cookie=tenth; Domain=pathtest.com; Path=/one; "
"path3-cookie=eleventh; Domain=pathtest.com; Path=/one/two; "
"path4-cookie=twelfth; Domain=pathtest.com; Path=/one/two/; "
Expand All @@ -78,7 +78,7 @@ def cookies_to_receive():
"different-domain-cookie=sixth; Domain=different.org; Path=/; "
"no-path-cookie=seventh; Domain=pathtest.com; "
"path-cookie=eighth; Domain=pathtest.com; Path=/somepath; "
"wrong-path-cookie=nineth; Domain=pathtest.com; Path=somepath;"
"wrong-path-cookie=ninth; Domain=pathtest.com; Path=somepath;"
)


Expand Down Expand Up @@ -254,7 +254,7 @@ async def test_domain_filter_ip_cookie_send(loop: Any) -> None:
"different-domain-cookie=sixth; Domain=different.org; "
"secure-cookie=seventh; Domain=secure.com; Secure; "
"no-path-cookie=eighth; Domain=pathtest.com; "
"path1-cookie=nineth; Domain=pathtest.com; Path=/; "
"path1-cookie=ninth; Domain=pathtest.com; Path=/; "
"path2-cookie=tenth; Domain=pathtest.com; Path=/one; "
"path3-cookie=eleventh; Domain=pathtest.com; Path=/one/two; "
"path4-cookie=twelfth; Domain=pathtest.com; Path=/one/two/; "
Expand Down Expand Up @@ -371,7 +371,7 @@ def setUp(self):
"different-domain-cookie=sixth; Domain=different.org; "
"secure-cookie=seventh; Domain=secure.com; Secure; "
"no-path-cookie=eighth; Domain=pathtest.com; "
"path1-cookie=nineth; Domain=pathtest.com; Path=/; "
"path1-cookie=ninth; Domain=pathtest.com; Path=/; "
"path2-cookie=tenth; Domain=pathtest.com; Path=/one; "
"path3-cookie=eleventh; Domain=pathtest.com; Path=/one/two; "
"path4-cookie=twelfth; Domain=pathtest.com; Path=/one/two/; "
Expand All @@ -394,7 +394,7 @@ def setUp(self):
"different-domain-cookie=sixth; Domain=different.org; Path=/; "
"no-path-cookie=seventh; Domain=pathtest.com; "
"path-cookie=eighth; Domain=pathtest.com; Path=/somepath; "
"wrong-path-cookie=nineth; Domain=pathtest.com; Path=somepath;"
"wrong-path-cookie=ninth; Domain=pathtest.com; Path=somepath;"
)

async def make_jar():
Expand Down

0 comments on commit 816e0bc

Please sign in to comment.