By Michael Adam on Wednesday, 12 January 2022
Posted in Support
Likes 0
Views 718
Votes 0
Hello,
please see the attached Delphi demo project. The code is expected to respond to an HTTP request to localhost:2222 by serving a static file but instead the response contains the file name. Furthermore it seems to be unsupported to specifiy the Content-type that HTTP.SYS will use in its response when it serves the file's content by setting the Content-type as custom header (see the commented out line).

Is this behaviour by design?

Kind regards
View Full Post