Skip to content

Commit

Permalink
fix bug: range fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
xxnet committed Apr 9, 2015
1 parent ef042df commit 3c22def
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions goagent/3.1.46/local/gae_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,9 @@ def fetch(self):
logging.info('>>>>>>>>>>>>>>> RangeFetch started(%r) %d-%d', self.url, start, end)

self.wfile.write("HTTP/1.1 %d\r\n" % self.response.status)
for key, value in self.response.getheaders():
#self.wfile.write("%s: %s\r\n" % (key, value))
for key in response_headers:
value = response_headers[key]
logging.debug("Head %s: %s", key.title(), value)
send_header(self.wfile, key, value)
self.wfile.write("\r\n")

Expand Down

0 comments on commit 3c22def

Please sign in to comment.