mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 02:32:51 +02:00
* Allow use of mime.types on windows
git-svn-id: trunk@38566 -
This commit is contained in:
parent
b86cd03403
commit
4972a9fbb8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user