浏览代码

* Allow use of mime.types on windows

git-svn-id: trunk@38566 -
michael 7 年之前
父节点
当前提交
4972a9fbb8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      utils/pas2js/httpcompiler.pp

+ 2 - 0
utils/pas2js/httpcompiler.pp

@@ -492,6 +492,8 @@ begin
   Log(etInfo,'Listening on port %d, serving files from directory: %s',[Port,D]);
 {$ifdef unix}
   MimeTypesFile:='/etc/mime.types';
+{$else}
+   MimeTypesFile:=ExtractFilePath(System.ParamStr(0))+'mime.types';
 {$endif}
   if Hasoption('P','project') then
     begin