Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.16k stars 92 forks source link

express_router errors #2

Closed jm130794 closed 6 years ago

jm130794 commented 6 years ago

Hello,

We are testing Restinio 0.4.1 and we have a problem with the express_router_tutorial example. When we use the URL http://localhost:8080/many/2018.06.01, the route used is non_matched_request_handler. For the other requests, everything works correctly.

Jean-Marc

eao197 commented 6 years ago

Hi!

Thanks for your report, we will investigate the case. Can you provide some more information about your compiler and OS?

eao197 commented 6 years ago

Do you really use POST method? May be you use GET (for example producing request via Web-browser).

If a request is made this way:

curl -X POST -d "example" http://localhost:8080/many/2018.06.01

then it works as expected:

POST request with many parameters:
year: 2018
month: 06
day: 01
body: example
jm130794 commented 6 years ago

You're right. You're right. We made a mistake using the GET method. Sorry... Restnio is a really nice tool.

Thank you

ngrodzitski commented 6 years ago

Please, consider to use the latest version 0.4.5.1

чт, 31 мая 2018 г., 10:16 eao197 notifications@github.com:

Closed #2 https://github.com/Stiffstream/restinio/issues/2.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Stiffstream/restinio/issues/2#event-1655294048, or mute the thread https://github.com/notifications/unsubscribe-auth/AVt3YgAvZ4XEidqqas0JHGC7wk6K4H1Eks5t35jbgaJpZM4UUcx4 .