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

Unified Diff: tools/testing/dart/http_server.dart

Issue 950353004: Ship UTF-8 JS in the test http_server. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: tools/testing/dart/http_server.dart
diff --git a/tools/testing/dart/http_server.dart b/tools/testing/dart/http_server.dart
index 7f5fae75bc4dee64baf58831ba2bf50a50a5af10..cbcace5288fcd685ad47b1eb8ce25c1bb0a6dbd9 100644
--- a/tools/testing/dart/http_server.dart
+++ b/tools/testing/dart/http_server.dart
@@ -397,7 +397,8 @@ class TestingServers {
if (path.filename.endsWith('.html')) {
response.headers.set('Content-Type', 'text/html');
} else if (path.filename.endsWith('.js')) {
- response.headers.set('Content-Type', 'application/javascript');
+ response.headers.set('Content-Type',
+ 'application/javascript;charset=UTF-8');
} else if (path.filename.endsWith('.dart')) {
response.headers.set('Content-Type', 'application/dart');
} else if (path.filename.endsWith('.css')) {
« 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