Skip to content

Commit

Permalink
Update proxylib.py
Browse files Browse the repository at this point in the history
handler.send 未实现send,改为send_header
  • Loading branch information
wellingfine committed Feb 28, 2015
1 parent 437a921 commit 33d81e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/proxylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ def handle_method(self, handler, kwargs):
handler.send_response(response.status)
for key, value in response.getheaders():
if (key.title(), value.lower()) == ('Connection', 'close'):
handler.send('Transfer-Encoding', 'chunked')
handler.send_header('Transfer-Encoding', 'chunked')
need_chunked = True
else:
handler.send_header(key, value)
Expand Down

0 comments on commit 33d81e8

Please sign in to comment.