salvadordf / WebUI4Delphi

WebUI4Delphi is a WebUI wrapper, which allows you to use any web browser as a GUI, with Delphi or Lazarus/FPC in the backend and HTML5 in the frontend.
https://www.briskbard.com/forum/
MIT License
107 stars 15 forks source link

Problem with set_file_handler in version 2.5.0 beta2 ! #5

Closed heimo88 closed 2 months ago

heimo88 commented 2 months ago

Hi, It seems that there is an issue with using webui_set_file_handler in version 2.5.0 beta2. When returning resources with this, the page shows an ERR_INVALID_HTTP_RESPONSE, but this problem does not occur in version 2.4.2. Is this a bug in WebUI?

heimo88 commented 2 months ago

You can test with the '[serve_a_folder]' demo click “[Static file example (Embedded)]” link will show the error.

heimo88 commented 2 months ago

Please ignore this issue; I noticed you added request headers in the returned content in 2.5.0. I’ll test it.