mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 19:11:03 +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]);
|
Log(etInfo,'Listening on port %d, serving files from directory: %s',[Port,D]);
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
MimeTypesFile:='/etc/mime.types';
|
MimeTypesFile:='/etc/mime.types';
|
||||||
|
{$else}
|
||||||
|
MimeTypesFile:=ExtractFilePath(System.ParamStr(0))+'mime.types';
|
||||||
{$endif}
|
{$endif}
|
||||||
if Hasoption('P','project') then
|
if Hasoption('P','project') then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user