Skip to content

Bypass proxy in nanoHTTP for hosts in "no_proxy"

This merge request is an adaptation of this patch from bugzilla and solves an issue, which prevents libxml2 to bypass our proxy correctly.

The environment variable "no_proxy" contains a list of hosts or domains for which a proxy server shall be bypassed. Until now, LIBXML2 only respects the "no_proxy" environment variable when its value is "*".

This merge request makes nanoHTTP compare the hostname of a HTTP request against the list of exceptions in “no_proxy”. If the hostname matches an entry in "no_proxy", then the proxy server will be bypassed for the request.

Edited by Markus Jörg

Merge request reports

Loading