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

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

Issue 67313008: Docserver: Fix 'encoding' typo; should have been 'charset'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/render_servlet.py
diff --git a/chrome/common/extensions/docs/server2/render_servlet.py b/chrome/common/extensions/docs/server2/render_servlet.py
index 8343f602e17b4fcc9b3f2e9b4ebeb888b981c08a..3e4e5f91d067a2166682505938a7bfad7ded2524 100644
--- a/chrome/common/extensions/docs/server2/render_servlet.py
+++ b/chrome/common/extensions/docs/server2/render_servlet.py
@@ -19,9 +19,9 @@ from third_party.handlebar import Handlebar
def _MakeHeaders(content_type):
return {
- 'x-frame-options': 'sameorigin',
- 'content-type': content_type,
- 'cache-control': 'max-age=300',
+ 'X-Frame-Options': 'sameorigin',
+ 'Content-Type': content_type,
+ 'Cache-Control': 'max-age=300',
}
@@ -102,6 +102,6 @@ class RenderServlet(Servlet):
content_type = content_and_type.content_type
if isinstance(content, unicode):
content = content.encode('utf-8')
- content_type += '; encoding=utf-8'
+ content_type += '; charset=utf-8'
return Response.Ok(content, headers=_MakeHeaders(content_type))
« 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