aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-28 18:00:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-28 18:00:43 +0300
commitcdcb44468670b2f557070c43f2ca6dd389eda03c (patch)
tree48d5eeef90779731b04b4a9654957acbe2b74197 /mod
parentc3020dee6c91f2694cd098566716f2a4a7794dbe (diff)
Adapt to renaming butl::casecmp() to icasecmp()
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-ci.cxx4
-rw-r--r--mod/mod-submit.cxx4
-rw-r--r--mod/page.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/mod/mod-ci.cxx b/mod/mod-ci.cxx
index 168b57c..5a56526 100644
--- a/mod/mod-ci.cxx
+++ b/mod/mod-ci.cxx
@@ -398,9 +398,9 @@ handle (request& rq, response& rs)
optional<string> ua;
for (const name_value& h: rq.headers ())
{
- if (casecmp (h.name, ":Client-IP") == 0)
+ if (icasecmp (h.name, ":Client-IP") == 0)
ip = h.value;
- else if (casecmp (h.name, "User-Agent") == 0)
+ else if (icasecmp (h.name, "User-Agent") == 0)
ua = h.value;
}
diff --git a/mod/mod-submit.cxx b/mod/mod-submit.cxx
index 7666b55..3130823 100644
--- a/mod/mod-submit.cxx
+++ b/mod/mod-submit.cxx
@@ -427,9 +427,9 @@ handle (request& rq, response& rs)
optional<string> ua;
for (const name_value& h: rq.headers ())
{
- if (casecmp (h.name, ":Client-IP") == 0)
+ if (icasecmp (h.name, ":Client-IP") == 0)
ip = h.value;
- else if (casecmp (h.name, "User-Agent") == 0)
+ else if (icasecmp (h.name, "User-Agent") == 0)
ua = h.value;
}
diff --git a/mod/page.cxx b/mod/page.cxx
index 1061788..e34e568 100644
--- a/mod/page.cxx
+++ b/mod/page.cxx
@@ -573,8 +573,8 @@ namespace brep
// Display HTTP(S) URL as link, striping the scheme prefix for the link
// text. Display URL with a different scheme as plain text.
//
- if (casecmp (url_.scheme, "https") == 0 ||
- casecmp (url_.scheme, "http") == 0)
+ if (icasecmp (url_.scheme, "https") == 0 ||
+ icasecmp (url_.scheme, "http") == 0)
{
butl::url u (url_);
u.scheme.clear ();