Patch (to be ported)
Project:
cURL HTTP Request
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2012 at 13:05 UTC
Updated:
29 Jan 2016 at 11:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
manarth commentedPatch changes the exception-lookup to use `in_array` instead of `array_key_exists`.
Comment #2
minoroffense commentedShould this instead be a documentation change and not a code change? Otherwise we may create a bug in some implementations.Nope. Code change.
Comment #3
minoroffense commentedChanged in 7.x-1.x
Comment #4
drasgardian commentedDoesn't look like this has been committed.
Comment #5
minoroffense commentedOops must have crushed the change when fixing other bugs. I'll restore it.
Comment #6
minoroffense commentedAlright, now it's in 7.x-1.x
Comment #7
minoroffense commentedComment #8
clertem commentedWell funny that no-one has raised this before, but matching the hostname with each entry in the exceptions array on equality is not really how we use proxy exceptions. Should we not do wildcard matching instead ?
In other terms, if 'proxy_exceptions' = [ '*.mycompany.com' ] then a request made to 'myserver.mycompany.com' would bypass the proxy.
Comment #9
manarth commentedI can see the benefit of a wildcard-based proxy-exception system, but drupal core's proxy exceptions currently require full URLs:
To avoid confusion, I think the cURL HTTP Request module should use the same format as core (but if we do implement a wildcard system, it should be backward-compatible with variables defined using the current approach, and we should contribute that back to core).