Skip to content

Commit

Permalink
refine gae/direct download
Browse files Browse the repository at this point in the history
  • Loading branch information
phuslu committed Nov 23, 2014
1 parent ba91c9d commit 421dfa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion local/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def handle(self, handler, **kwargs):
handler.send_header(key, value)
handler.end_headers()
bufsize = 8192
written = 0
written = rescue_bytes
while True:
data = None
with gevent.Timeout(self.connect_timeout, False):
Expand Down
2 changes: 1 addition & 1 deletion local/proxylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def handle_method(self, handler, kwargs):
return
need_chunked = 'Transfer-Encoding' in response_headers
bufsize = 8192
written = 0
written = rescue_bytes
while True:
data = None
with gevent.Timeout(self.connect_timeout, False):
Expand Down

0 comments on commit 421dfa8

Please sign in to comment.