Skip to content

Commit

Permalink
Removing unstable flag from ResponseStreamReader
Browse files Browse the repository at this point in the history
This flag breaks chunked encoding. It appears to no longer be needed either
  • Loading branch information
AddisonSchiller committed Sep 25, 2017
1 parent 0621297 commit 746b460
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions waterbutler/core/streams/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,10 @@ def _make_boundary_stream(self):

class ResponseStreamReader(BaseStream):

def __init__(self, response, size=None, name=None, unsizable=False):
def __init__(self, response, size=None, name=None):
super().__init__()
if 'Content-Length' in response.headers:
self._size = int(response.headers['Content-Length'])
elif not unsizable:
self._size = int(size)
else:
self._size = None

Expand Down

0 comments on commit 746b460

Please sign in to comment.