Red Hat Bugzilla – Bug 491674
Use relative paths in HTTP requests via m2urllib2
Last modified: 2013-01-10 05:02:17 EST
HTTP requests have the form:
GET $SOME_RESOURCE HTTP/1.1
where $SOME_RESOURCE can either be a relative path ("/index.html") or an absolute URI ("https://my-server.com/index.html").
m2urllib2 always uses absolute URIs, which is technically correct, but not understood by some webservers. The attached patch switches to using relative paths for both direct connections, and for requests routed through a proxy via the CONNECT directive.
Created attachment 336304 [details]
use relative file paths in https requests
Thanks for your report.
The second hunk is already upstream, I have filed the first one as https://bugzilla.osafoundation.org/show_bug.cgi?id=12760 .
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.