Skip to content

Commit

Permalink
Better length_limit handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ifduyue committed Aug 3, 2023
1 parent ef61c76 commit 5c88a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urlfetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def __init__(self, r, **kwargs):
self._decoder = None

try:
self.length_limit = int(kwargs.get("length_limit"))
self.length_limit = int(kwargs.get("length_limit", 0)) or None
except:
self.length_limit = None

Expand Down

0 comments on commit 5c88a34

Please sign in to comment.