fcl-web: simpleserver mimetypes parameter and mime.types file
Original Reporter info from Mantis: Simon Ameis @SAmeis
-
Reporter name: Simon Ameis
Original Reporter info from Mantis: Simon Ameis @SAmeis
- Reporter name: Simon Ameis
Description:
On Windows there is no default mime.types file. Thus all files are delivered as Application/octet-stream.
I suggest, the server should search in the current working directory for it or accept it as parameter.
Currently the parameter --mimetype is available but isn't included in CheckOptions() call.
This has to be changed to:
S:=Checkoptions('hqd:ni:p:sH:m:',['help','quiet','noindexpage','directory:','port:','indexpage:','ssl','hostname:','mimetypes:']);
Additional information:
The server is used for pas2js integration in Lazarus. Thus it would also be valueable, if a mime.types file could be delivered with the program.
Mantis conversion info:
- Mantis ID: 35869
- OS: Windows 7, 64 bit
- OS Build: 6.1 SP 1
- Platform: Desktop PC
- Fixed in version: 3.3.1
- Fixed in revision: 42821 (#071aaccb)
- Target version: 3.2.0