about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-27 22:06:26 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-27 22:06:26 +0000
commit90876cca0f1f1abd3f9554280391dc1e39a544e0 (patch)
tree889b2c2f94aa7fa8a6bfda24f262b7e6c43c98bd
parentffd8df879dea5b306b1a1615c2eabe0d463a3a3b (diff)
downloadtipidee-90876cca0f1f1abd3f9554280391dc1e39a544e0.tar.gz
tipidee-90876cca0f1f1abd3f9554280391dc1e39a544e0.tar.xz
tipidee-90876cca0f1f1abd3f9554280391dc1e39a544e0.zip
Add a misspelling
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--doc/tipidee.conf.html8
-rw-r--r--src/libtipidee/tipidee_log_request.c2
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 ;