Lines 34-39
Link Here
|
34 |
if (!url.hostname) { |
34 |
if (!url.hostname) { |
35 |
return 0; |
35 |
return 0; |
36 |
} |
36 |
} |
|
|
37 |
/* The following allows caching of forward proxy when only a protocol is specified. |
38 |
* For example: if you want to cache all forward proxy http requests you would specify |
39 |
* 'CacheEnable disk http://'. The apache code as is, will do a strcasecmp on the |
40 |
* filter hostname ('') and the url. This will always fail. So lets handle the |
41 |
* special case where you configure just a protocol (no host) |
42 |
*/ |
43 |
else if ( '\0' == filter.hostname[0] ){ /* meets the condition */} /* ryan.pendergast gmail add */ |
37 |
else if (strcasecmp(filter.hostname, url.hostname)) { |
44 |
else if (strcasecmp(filter.hostname, url.hostname)) { |
38 |
return 0; |
45 |
return 0; |
39 |
} |
46 |
} |