* Allow use of mime.types on windows

git-svn-id: trunk@38566 -
This commit is contained in:
michael 2018-03-18 18:16:48 +00:00
parent b86cd03403
commit 4972a9fbb8

View File

@ -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