diff options
-rw-r--r-- | doc/tipidee.conf.html | 8 | ||||
-rw-r--r-- | src/libtipidee/tipidee_log_request.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/tipidee.conf.html b/doc/tipidee.conf.html index 685b454..4c0a23f 100644 --- a/doc/tipidee.conf.html +++ b/doc/tipidee.conf.html @@ -386,7 +386,7 @@ http <em>version</em></tt>. The path is decoded, but if there are non-printable encoded as hexadecimal values <tt>\0xab</tt>. If the request line includes a query, a <tt>query <em>query</em></tt> field is added before the <tt>http</tt> field. </dd> <dt> <tt>referrer</tt> </dt> <dd> Add a <tt>referrer "<em>referrer</em>"</tt> field to the <tt>request</tt> line, for -requests that include a <tt>Referrer:</tt> header. <em>referrer</em> is quoted like <em>path</em>, to avoid +requests that include a <tt>Referer:</tt> header. <em>referrer</em> is quoted like <em>path</em>, to avoid malicious clients messing with log lines. This keyword has no effect when given without the <tt>request</tt> keyword. </dd> <dt> <tt>user-agent</tt> </dt> <dd> Add a <tt>user-agent "<em>user-agent</em>"</tt> field to the <tt>request</tt> line, for @@ -453,9 +453,9 @@ the header: </p> <p> - <code> custom-header add <em>name</em> <em>value</em> </code> - <code> custom-header always <em>name</em> <em>value</em> </code> - <code> custom-header remove <em>name</em> </code> + <code> custom-header add <em>name</em> <em>value</em> </code> <br> + <code> custom-header always <em>name</em> <em>value</em> </code> <br> + <code> custom-header remove <em>name</em> </code> <br> <code> custom-header never <em>name</em> </code> </p> diff --git a/src/libtipidee/tipidee_log_request.c b/src/libtipidee/tipidee_log_request.c index d633f0b..6543214 100644 --- a/src/libtipidee/tipidee_log_request.c +++ b/src/libtipidee/tipidee_log_request.c @@ -20,7 +20,7 @@ void tipidee_log_request (uint32_t v, tipidee_rql const *rql, tipidee_headers co if (!string_quotes(sa, rql->uri.path) || !stralloc_0(sa)) goto eerr ; if (v & TIPIDEE_LOG_REFERRER) { - char const *x = tipidee_headers_search(hdr, "Referrer") ; + char const *x = tipidee_headers_search(hdr, "Referer") ; if (x) { refpos = sa->len ; |