W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

HTNoProxy behaviour

From: Sam Couter <sam@topic.com.au>
Date: Thu, 03 Jun 1999 17:34:53 +1000
Message-ID: <3756301D.10A2BC2F@topic.com.au>
To: www-lib@w3.org
The documentation in the HTProxy.html file states that calling
HTNoProxy_add() with a port of zero means "on any port". However, I found the
behaviour didn't match that statement.

So here's a patch:

Index: Library/src/HTProxy.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTProxy.c,v
retrieving revision 2.18
diff -u -r2.18 HTProxy.c
--- HTProxy.c   1999/02/22 22:10:11     2.18
+++ HTProxy.c   1999/06/03 07:16:39
@@ -422,14 +422,14 @@
 #endif
                if (!pres->access ||
                    (pres->access && !strcmp(pres->access, access))) {
-                   if (pres->port == port) {
+                   if ((pres->port == 0) || (pres->port == port)) {
                        char *np = pres->host+strlen(pres->host);
                        char *hp = host+strlen(host);


-- 
Sam Couter                                             sam@topic.com.au
Internet Engineer
tSA Consulting
Received on Thursday, 3 June 1999 03:35:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT