Hdr->http_host is now gone.
[citadel.git] / webcit / context_loop.c
index a358545e989c36ccbc46ce5be28f495cf4aa46a1..aada8bee64b2ab37662489f914d22338cf3575bc 100644 (file)
@@ -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 */
+       }
 }