Browse Source

* Allow use of mime.types on windows

git-svn-id: trunk@38566 -
michael 7 năm trước cách đây
mục cha
commit
4972a9fbb8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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