Skip to content

Commit

Permalink
Merge pull request tornadoweb#2629 from bdarnell/httpresponse-no-body
Browse files Browse the repository at this point in the history
httpclient: HTTPResponse.body returns empty string instead of raising
  • Loading branch information
bdarnell authored Mar 23, 2019
2 parents 1772d61 + 62f3cdd commit a449d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def __init__(
@property
def body(self) -> bytes:
if self.buffer is None:
raise ValueError("body not set")
return b""
elif self._body is None:
self._body = self.buffer.getvalue()

Expand Down

0 comments on commit a449d8d

Please sign in to comment.