Skip to content

Commit 0629546

Browse files
author
Sebastiano Merlino
committed
Make url case_insensitive optional in http_endpoint
1 parent 7849c97 commit 0629546

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/http_endpoint.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ http_endpoint::http_endpoint
5555
else
5656
this->url_modded = "/";
5757
vector<string> parts;
58+
59+
#ifdef CASE_INSENSITIVE
5860
string_utilities::to_lower_copy(url, url_complete);
61+
#else
62+
url_complete = url;
63+
#endif
5964

6065
if(url_complete[0] != '/')
6166
url_complete = "/" + url_complete;

0 commit comments

Comments
 (0)