From 9c03d1e8e3f90965f360a53032f982a46ab6d8e7 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 29 Nov 2015 16:35:49 +0900 Subject: [PATCH] [Modify] Polish it --- Example3/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Example3/Program.cs b/Example3/Program.cs index 8fde6d7a..dad6e5f6 100644 --- a/Example3/Program.cs +++ b/Example3/Program.cs @@ -71,8 +71,7 @@ namespace Example3 res.ContentType = "text/html"; res.ContentEncoding = Encoding.UTF8; } - - if (path.EndsWith (".js")) { + else if (path.EndsWith (".js")) { res.ContentType = "application/javascript"; res.ContentEncoding = Encoding.UTF8; }