Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3774)

Unified Diff: chrome/common/extensions/docs/server2/preview.py

Issue 10837078: Preview Docs Server: Send response for the preview server. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/preview.py
diff --git a/chrome/common/extensions/docs/server2/preview.py b/chrome/common/extensions/docs/server2/preview.py
index 65f45344fd8821374e716afe2c8c8e6465e6f235..1345de2b5a0f7a1c91ecebad6e96d1c1cf273ea3 100755
--- a/chrome/common/extensions/docs/server2/preview.py
+++ b/chrome/common/extensions/docs/server2/preview.py
@@ -51,6 +51,9 @@ class RequestHandler(BaseHTTPRequestHandler):
response = Response()
Handler(request, response, local_path=_GetLocalPath()).get()
content = response.out.getvalue()
+
+ self.send_response(response.status)
+ self.end_headers()
if isinstance(content, str):
self.wfile.write(content)
else:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698