Browse Source

fix mimeTypes

sunag 7 năm trước cách đây
mục cha
commit
bb85d59c44
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      utils/servers/simplehttpserver.js

+ 5 - 5
utils/servers/simplehttpserver.js

@@ -22,12 +22,12 @@ var port = 8000,
 		"html": "text/html",
 		"js": "text/javascript",
 		"css": "text/css",
-		"jpg": "text/jpeg",
-		"png": "text/png",
-		"gif": "text/gif",
-		"ogg": "text/ogg",
+		"jpg": "image/jpeg",
+		"png": "image/png",
+		"gif": "image/gif",
+		"ogg": "audio/ogg",
 		"mp3": "audio/mpeg",
-		"mp4": "text/mp4",
+		"mp4": "video/mp4",
 		"txt": "text/plain",
 		"bin": "application/octet-stream"
 	};