File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ entertain early in the review process. Thank you in advance!
24
24
25
25
## Related issue number
26
26
27
- <!-- Are there any issues opened that will be resolved by merging this change ? -->
28
- <!-- Remember to prefix with 'Fixes' if it should close the issue (e.g. 'Fixes #123'). -->
27
+ <!-- Will this resolve any open issues ? -->
28
+ <!-- Remember to prefix with 'Fixes' if it closes an issue (e.g. 'Fixes #123'). -->
29
29
30
30
## Checklist
31
31
Original file line number Diff line number Diff line change
1
+ Fix error messages to be idiomatically correct English.
Original file line number Diff line number Diff line change @@ -506,10 +506,10 @@ cdef class HttpParser:
506
506
if self ._payload is not None :
507
507
if self ._cparser.flags & cparser.F_CHUNKED:
508
508
raise TransferEncodingError(
509
- " Not enough data for satisfy transfer length header." )
509
+ " Not enough data to satisfy transfer length header." )
510
510
elif self ._cparser.flags & cparser.F_CONTENT_LENGTH:
511
511
raise ContentLengthError(
512
- " Not enough data for satisfy content length header." )
512
+ " Not enough data to satisfy content length header." )
513
513
elif cparser.llhttp_get_errno(self ._cparser) != cparser.HPE_OK:
514
514
desc = cparser.llhttp_get_error_reason(self ._cparser)
515
515
raise PayloadEncodingError(desc.decode(' latin-1' ))
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class TransferEncodingError(PayloadEncodingError):
69
69
70
70
71
71
class ContentLengthError (PayloadEncodingError ):
72
- """Not enough data for satisfy content length header."""
72
+ """Not enough data to satisfy content length header."""
73
73
74
74
75
75
class LineTooLong (BadHttpMessage ):
Original file line number Diff line number Diff line change @@ -792,11 +792,11 @@ def feed_eof(self) -> None:
792
792
self .payload .feed_eof ()
793
793
elif self ._type == ParseState .PARSE_LENGTH :
794
794
raise ContentLengthError (
795
- "Not enough data for satisfy content length header."
795
+ "Not enough data to satisfy content length header."
796
796
)
797
797
elif self ._type == ParseState .PARSE_CHUNKED :
798
798
raise TransferEncodingError (
799
- "Not enough data for satisfy transfer length header."
799
+ "Not enough data to satisfy transfer length header."
800
800
)
801
801
802
802
def feed_data (
You can’t perform that action at this time.
0 commit comments