summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2012-12-06 20:53:56 +0100
committerBertrand Jacquin <beber@meleeweb.net>2012-12-06 20:53:56 +0100
commit759d06525cfec925329e001be2a545012591c669 (patch)
treea2baa9ed988a8d3388a9e72a4d3595db89cacbeb
parent[BUG] Fix build on older apache release (2.2), newer release do the (diff)
downloadmod_virtualvalue-759d06525cfec925329e001be2a545012591c669.tar.gz
[CLEANUP] vv_replace_HTTP() is looking for header values, not only Host:
So replace variable name
-rw-r--r--mod_virtualvalue.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod_virtualvalue.c b/mod_virtualvalue.c
index 0c4c893..0260554 100644
--- a/mod_virtualvalue.c
+++ b/mod_virtualvalue.c
@@ -137,16 +137,16 @@ static char *vv_strrrstr (char *start, char *cur, const char *needle) {
}
static const char *vv_replace_HTTP (char *full __U__, char *search, request_rec *r) {
- const char *host;
+ const char *header;
- host = apr_table_get(r->headers_in, search);
+ header = apr_table_get(r->headers_in, search);
- if (!host) {
+ if (!header) {
VV_error("Header %s not found", search);
- host = apr_pstrdup (r->pool, "NULL");
+ header = apr_pstrdup (r->pool, "NULL");
}
- return (host);
+ return (header);
}
static const char *vv_replace_ENV (char *full __U__, char *search, request_rec *r) {