Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround failure of get_url on python 2.7.6 hosts #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 19, 2016

  1. workaround failure of get_url on python 2.7.6 hosts

    golang.org download URLs do not serve the correct TLS certificate
    unless TLS SNI is used. The TLS client in Python 2.7.6 doesn't
    support TLS SNI and so reports an certificate validation error.
    
    Fortunately, the golang.org URL is actually a redirect to a
    different URL which does export the correct certificate even
    without SNI.
    
    This change adjusts the specified download URL to take account of
    which version of python is installed on the host by fallowing
    the redirect with curl, defaulting to the original URL if
    this process does not work for some reason.
    
    Signed-off-by: Jon Seymour <[email protected]>
    jonseymour committed Mar 19, 2016
    Configuration menu
    Copy the full SHA
    7a60870 View commit details
    Browse the repository at this point in the history