From d6cddf13d91a69d8eb70dd846583e212c79075f2 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 8 Sep 2010 13:02:05 -0400 Subject: [PATCH] Hdr->http_host is now gone. --- webcit/context_loop.c | 21 ++++++++------------- webcit/webcit.h | 1 - 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/webcit/context_loop.c b/webcit/context_loop.c index a358545e9..aada8bee6 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -671,24 +671,19 @@ void Header_HandleUserAgent(StrBuf *Line, ParsedHttpHdrs *hdr) void Header_HandleHost(StrBuf *Line, ParsedHttpHdrs *hdr) { - if ((follow_xff) && (hdr->HR.http_host != NULL)) { - return; - } - else { - hdr->HR.http_host = Line; - if (site_prefix == NULL) { - site_prefix = NewStrBuf(); - StrBufAppendPrintf(site_prefix, "%s://", (is_https ? "https" : "http") ); - StrBufAppendBuf(site_prefix, Line, 0); - lprintf(CTDL_DEBUG, "\033[33m [%s] \033[0m\n", ChrPtr(site_prefix)); - } + if (site_prefix == NULL) { + site_prefix = NewStrBuf(); + StrBufAppendPrintf(site_prefix, "%s://", (is_https ? "https" : "http") ); + StrBufAppendBuf(site_prefix, Line, 0); + lprintf(CTDL_DEBUG, "\033[33m [%s] \033[0m\n", ChrPtr(site_prefix)); } } void Header_HandleXFFHost(StrBuf *Line, ParsedHttpHdrs *hdr) { - if (follow_xff) - hdr->HR.http_host = Line; + if (follow_xff) { + /* FIXME do something here */ + } } diff --git a/webcit/webcit.h b/webcit/webcit.h index 24eca9ad3..33f87cd80 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -429,7 +429,6 @@ typedef struct _HdrRefs { StrBuf *ContentType; StrBuf *RawCookie; StrBuf *ReqLine; - StrBuf *http_host; /* HTTP Host: header */ StrBuf *browser_host; StrBuf *browser_language; StrBuf *user_agent; -- 2.30.2