Add stream=True #45

This commit is contained in:
Roy Hyunjin Han 2015-02-15 08:48:27 -05:00
commit 5f7937dc1e
15 changed files with 29 additions and 394 deletions

View file

@ -204,7 +204,8 @@ class _XHR_PollingTransport(_AbstractTransport):
self._http_session.get,
self._url,
params=self._params,
timeout=TIMEOUT_IN_SECONDS)
timeout=TIMEOUT_IN_SECONDS,
stream=True)
response_text = response.text
if not response_text.startswith(BOUNDARY):
yield response_text