scripts/send-error-report: fetch /Errors/ instead of /.
If HTTP_PROXY or http_proxy is set when the send-error-report script is run, it will check to see if fetching / on the specified server returns 200 without the proxy set. If it does it will assume that the proxy is not needed. However this check can never work because fetching / always redirects to /Errors/ in the current code and thus returns code 301. This is fixed by fetching /Errors/ instead of /. [YOCTO #YB6576] (From OE-Core rev: af93c89febcd186d7e31f1d15affc15f38e3379d) Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
2dab9e6212
commit
6a77a1dd22
|
@ -20,7 +20,7 @@ def handle_connection(server, data):
|
|||
# we need to check that the server isn't a local one, as in no_proxy
|
||||
try:
|
||||
temp = httplib.HTTPConnection(server, strict=True, timeout=5)
|
||||
temp.request("GET", "/")
|
||||
temp.request("GET", "/Errors/")
|
||||
tempres = temp.getresponse()
|
||||
if tempres.status == 200:
|
||||
proxyrequired = False
|
||||
|
|
Loading…
Reference in New Issue