1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygen

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William A. Rowe Jr
2016-06-09 00:06:42 +00:00
parent a3142bb870
commit f4cc76ee71
50 changed files with 374 additions and 364 deletions

View File

@@ -43,11 +43,11 @@ static int proxy_http_canon(request_rec *r, char *url)
apr_port_t port, def_port;
/* ap_port_of_scheme() */
if (ap_casecmpstrn(url, "http:", 5) == 0) {
if (ap_cstr_casecmpn(url, "http:", 5) == 0) {
url += 5;
scheme = "http";
}
else if (ap_casecmpstrn(url, "https:", 6) == 0) {
else if (ap_cstr_casecmpn(url, "https:", 6) == 0) {
url += 6;
scheme = "https";
}
@@ -743,7 +743,7 @@ static int ap_proxy_http_prefetch(apr_pool_t *p, request_rec *r,
* encoding has been done by the extensions' handler, and
* do not modify add_te_chunked's logic
*/
if (*old_te_val && ap_casecmpstr(*old_te_val, "chunked") != 0) {
if (*old_te_val && ap_cstr_casecmp(*old_te_val, "chunked") != 0) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01093)
"%s Transfer-Encoding is not supported", *old_te_val);
return HTTP_INTERNAL_SERVER_ERROR;
@@ -1064,14 +1064,14 @@ static void process_proxy_header(request_rec *r, proxy_dir_conf *c,
};
int i;
for (i = 0; date_hdrs[i]; ++i) {
if (!ap_casecmpstr(date_hdrs[i], key)) {
if (!ap_cstr_casecmp(date_hdrs[i], key)) {
apr_table_add(r->headers_out, key,
date_canon(r->pool, value));
return;
}
}
for (i = 0; transform_hdrs[i].name; ++i) {
if (!ap_casecmpstr(transform_hdrs[i].name, key)) {
if (!ap_cstr_casecmp(transform_hdrs[i].name, key)) {
apr_table_add(r->headers_out, key,
(*transform_hdrs[i].func)(r, c, value));
return;