You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Test coverage for -DCASE_INSENSITIVE is lacking. #310
Some digging around for other reason shows that http_endpoint::operator< is unconditionally case-insensitive. This strongly implies that there are gaps in the test suite relating to builds with -DCASE_INSENSITIVE.
Update for libhttpserver 2.0 — partially addressed, but leaving this open.
The dispatch-time impact is gone: v2's 3-tier route table is now the sole routing oracle and is consistently case-sensitive by default. It replaces the v1 registered_resources ordered map whose key comparator (http_endpoint::operator<) was the unconditionally case-insensitive one you flagged. test/integ/basic.cpp also gained #ifdef CASE_INSENSITIVE routing probes.
However, the underlying gap this issue is about remains:
There's still no --enable-case-insensitive configure option and no CI lane that builds with -DCASE_INSENSITIVE, so those probes are never compiled or exercised.
http_endpoint::operator< is still unconditionally case-insensitive via std::toupper (now vestigial, but unchanged).
Leaving this open to track adding a real -DCASE_INSENSITIVE build + test lane.
Activity
Fix issue etr#310, but may break existing users.
etr commentedon Jul 23, 2026
Update for libhttpserver 2.0 — partially addressed, but leaving this open.
The dispatch-time impact is gone: v2's 3-tier route table is now the sole routing oracle and is consistently case-sensitive by default. It replaces the v1
registered_resourcesordered map whose key comparator (http_endpoint::operator<) was the unconditionally case-insensitive one you flagged.test/integ/basic.cppalso gained#ifdef CASE_INSENSITIVErouting probes.However, the underlying gap this issue is about remains:
--enable-case-insensitiveconfigure option and no CI lane that builds with-DCASE_INSENSITIVE, so those probes are never compiled or exercised.http_endpoint::operator<is still unconditionally case-insensitive viastd::toupper(now vestigial, but unchanged).Leaving this open to track adding a real
-DCASE_INSENSITIVEbuild + test lane.