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

Unified Diff: runtime/bin/vmservice/server.dart

Issue 24844002: Initial GUI for VM service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: runtime/bin/vmservice/server.dart
diff --git a/runtime/bin/vmservice/server.dart b/runtime/bin/vmservice/server.dart
index 08e8d9b10dc34e17d9d2f61b9de10440bd5d5010..7992b3b091f6e854b345bb418c313a47f5a08996 100644
--- a/runtime/bin/vmservice/server.dart
+++ b/runtime/bin/vmservice/server.dart
@@ -22,7 +22,8 @@ class Server {
var resource = Resource.resources[path];
if (resource != null) {
// Serving up a static resource (e.g. .css, .html, .png).
- request.response.headers.contentType = ContentType.parse(mimeType);
+ request.response.headers.contentType =
+ ContentType.parse(resource.mimeType);
request.response.add(resource.data);
request.response.close();
return;

Powered by Google App Engine
This is Rietveld 408576698