View Issue Details

IDProjectCategoryView StatusLast Update
0035869FPCPackagespublic2019-07-21 22:37
ReporterSimon AmeisAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
PlatformDesktop PCOSWindows 7, 64 bitOS Version6.1 SP 1
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0035869: fcl-web: simpleserver mimetypes parameter and mime.types file
DescriptionOn 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 InformationThe 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.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-07-21 20:07 Simon Ameis New Issue
2019-07-21 22:37 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-07-21 22:37 Michael Van Canneyt Status new => assigned