Permalink
Browse files

Merge branch 'master' of github.com:internetarchive/liveweb

  • Loading branch information...
2 parents c43dc60 + 2c133d1 commit 8dfba19c31db7b0e8db25424dee81dd0a762e84b @anandology anandology committed Mar 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 liveweb/arc_proxy.py
View
@@ -13,10 +13,10 @@ def get(url):
instead of downloading again.
"""
u = urllib.urlopen(url)
- status_line = "HTTP/1.1 200 OK\n"
+ status_line = "HTTP/1.1 200 OK\r\n"
headers = str(u.headers)
body = u.read()
- payload = status_line + headers + body
+ payload = status_line + headers + "\r\n" + body
content_type = u.headers.get('content-type',"application/octet-stream").split(';')[0]

0 comments on commit 8dfba19

Please sign in to comment.