matt-42 / lithium

Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
https://matt-42.github.io/lithium
MIT License
1.26k stars 91 forks source link

fix / crash #110

Closed kkzi closed 2 years ago

kkzi commented 2 years ago

My dev env. is as follows: OS: Windows 10 x64 Complier: Visual Studio 2022 (17.1.6)

Issue: Build all targets and hello_world_example, then visit http://localhost:8080/ with browser, I got a crash: out of range

image

image

call stack image

matt-42 commented 2 years ago

Hi @kkzi, good catch and thanks for the fix.

matt-42 commented 2 years ago

I fixed your PR (it was breaking the case where you plug routes under the root url:"/" Don't hesitate to pull master and check it on your windows setup.