etr / libhttpserver

C++ library for creating an embedded Rest HTTP server (and more)
GNU Lesser General Public License v2.1
893 stars 186 forks source link

[BUG] Title #323

Open kaihekaihe opened 1 year ago

kaihekaihe commented 1 year ago

Prerequisites

Description

[Description of the issue]

Steps to Reproduce

  1. start server httpserver::webserver ws = httpserver::create_webserver(8082);

    /ws.allow_ip("127.0.0.1");/

    file_response_resource fr; ws.register_resource("/download", &fr); ws.start(true);

  2. set get request:http://localhost:8082/download

  3. this is the debug process: image *con_cls is null point 4.the program is processing this method all the time and cant go into requests_answer_first_step

Expected behavior: [What you expect to happen] the program can go into requests_answer_first_step Actual behavior: [What actually happens]

Reproduces how often: [What percentage of the time does it reproduce?] every time

Versions

If you have problems during build:

Additional Information

Any additional information, configuration (especially build configuration flags if you compiled the libraries) or data that might be necessary to reproduce the issue.

If you have problems during build, please attach your config.log and the full scope of your error from make.

If you have problems at execution, please: