Wednesday, 12 January 2022
  2 Replies
  627 Visits
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
Attachments (1)