Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Apr 2, 2022
1 parent fbb001e commit 2bbd6c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/twisted/web/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def _ishexdigits(b: bytes) -> bool:
for c in b:
if c not in b"0123456789abcdefABCDEF":
return False
return bool(b)
return b != b""


def _hexint(b: bytes) -> int:
Expand Down Expand Up @@ -1835,14 +1835,14 @@ def noMoreData(self):
"""
Characters that are valid in a chunk extension.
See RFC 7230 section 4.1.1:
See RFC 7230 section 4.1.1::
chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
chunk-ext-name = token
chunk-ext-val = token / quoted-string
Section 3.2.6:
And section 3.2.6::
token = 1*tchar
Expand Down

0 comments on commit 2bbd6c8

Please sign in to comment.