aboutsummaryrefslogtreecommitdiff
path: root/libbutl/curl.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-28 17:58:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-28 17:58:47 +0300
commit8f14a22e5bbb71d90577b35a09ba8ffae04bfe9c (patch)
tree96bce706024b3ec200170d5e090ac41615887606 /libbutl/curl.cxx
parentf488e6473a7d0562c0e2df6d107a36de4d30d9da (diff)
Rename casecmp() function and case_compare_[c_]string structs to icasecmp() and icase_compare_[c_]string
Diffstat (limited to 'libbutl/curl.cxx')
-rw-r--r--libbutl/curl.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/libbutl/curl.cxx b/libbutl/curl.cxx
index f88869b..33ca5be 100644
--- a/libbutl/curl.cxx
+++ b/libbutl/curl.cxx
@@ -33,7 +33,7 @@ import butl.fdstream;
import butl.small_vector;
#endif
-import butl.utility; // casecmp()
+import butl.utility; // icasecmp()
#else
#include <libbutl/utility.mxx>
#endif
@@ -178,8 +178,7 @@ namespace butl
if (n == string::npos)
throw invalid_argument ("no protocol in URL");
- if (casecmp (u, "ftp", n) == 0 ||
- casecmp (u, "tftp", n) == 0)
+ if (icasecmp (u, "ftp", n) == 0 || icasecmp (u, "tftp", n) == 0)
{
switch (m)
{
@@ -189,8 +188,7 @@ namespace butl
throw invalid_argument ("POST method with FTP protocol");
}
}
- else if (casecmp (u, "http", n) == 0 ||
- casecmp (u, "https", n) == 0)
+ else if (icasecmp (u, "http", n) == 0 || icasecmp (u, "https", n) == 0)
{
o.push_back ("--fail"); // Fail on HTTP errors (e.g., 404).
o.push_back ("--location"); // Follow redirects.