
From aw1@stade.co.uk Fri Apr  3 23:15:29 1998
Date: Tue, 2 Sep 1997 02:44:14 +0100 (BST)
From: Adrian Wontroba <aw1@stade.co.uk>
To: htdig@sdsu.edu
Subject: htdig: htdig-3.0.8b2 - small change

Hi.

I've installed htdig-3.0.8b2 on the Association of C and C++ Users
web server (under FreeBSD 2.1.7). This site's main content is 
approximately 1,000 C / C++ / Java related book reviews. htdig will
make finding reviews very much easier.

This server internally uses URLs of the form http:/sitemap.html, which
upset htdig until I made this change:

diff -ur ./htdig-3.0.8b2/htlib/URL.cc /home/aw1/htdig-3.0.8b2/htlib/URL.cc
--- ./htdig-3.0.8b2/htlib/URL.cc	Fri Aug 15 06:59:38 1997
+++ /home/aw1/htdig-3.0.8b2/htlib/URL.cc	Sat Aug 30 21:27:47 1997
@@ -148,7 +148,7 @@
     while (isalpha(*p))
 	p++;
     int	hasService = (*p == ':');
-    if (hasService && ((strncmp(ref, "http:/", 6) == 0) ||
+    if (hasService && ((strncmp(ref, "http://", 7) == 0) ||
 		       (strncmp(ref, "http:", 5) != 0)))
     {
 	//

i.e., only treat URLs starting "http://" as relative.

That done, it works very well. Compiles out of the box too (unlike 8b1).

It also works under FreeBSD 2.2-stable.

Thank you for creating htdig.

-- 
Adrian Wontroba, Stade Computers Limited.       phone:  (+44) 121 373 9546
Mail info@accu.org for information about the Association of C and C++ Users
or see <http://www.accu.org/>
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.

