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

Unified Diff: utils/tip/toss.dart

Issue 8963007: Support SVG files in toss. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: utils/tip/toss.dart
diff --git a/utils/tip/toss.dart b/utils/tip/toss.dart
index fdf95134bf76755e36d14d3816de251e88f8543c..959308c8012aaad2843bfaf0d50074c035d72523 100644
--- a/utils/tip/toss.dart
+++ b/utils/tip/toss.dart
@@ -77,7 +77,9 @@ void main() {
if (req.url.endsWith('.html')) {
res.setHeader('Content-Type', 'text/html');
} else if (req.url.endsWith('.css')) {
- res.setHeader('Content-Type', 'text/css');
+ res.setHeader('Content-Type', 'text/css');
+ } else if (req.url.endsWith('.svg')) {
+ res.setHeader('Content-Type', 'image/svg+xml');
} else {
res.setHeader('Content-Type', 'text/plain');
}
« 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