diff options
author | Kevin Burke <kev@inburke.com> | 2018-01-23 22:11:51 -0800 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-02-13 18:36:48 +0000 |
commit | 5158aab7d662e274aed870ae6bf9cf8ae0786f5b (patch) | |
tree | 40bdac5105b073ff0f269cea5f6acf84a561a7da /lib | |
parent | c10e61424f9c17c2972a438287ff9ac90d6b55a4 (diff) | |
download | go-git-5158aab7d662e274aed870ae6bf9cf8ae0786f5b.tar.gz |
all: use HTTPS for iana.org links
iana.org, www.iana.org and data.iana.org all present a valid TLS
certificate, so let's use it when fetching data or linking to
resources to avoid errors in transit.
Change-Id: Ib3ce7c19789c4e9d982a776b61d8380ddc63194d
Reviewed-on: https://go-review.googlesource.com/89416
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/time/README | 2 | ||||
-rwxr-xr-x | lib/time/update.bash | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/time/README b/lib/time/README index ffce9b0e08..aab4daa7e2 100644 --- a/lib/time/README +++ b/lib/time/README @@ -3,7 +3,7 @@ the code and data maintained as part of the IANA Time Zone Database. The IANA asserts that the database is in the public domain. For more information, see -http://www.iana.org/time-zones +https://www.iana.org/time-zones ftp://ftp.iana.org/tz/code/tz-link.htm http://tools.ietf.org/html/rfc6557 diff --git a/lib/time/update.bash b/lib/time/update.bash index b54fc9e4f6..26ad79d52d 100755 --- a/lib/time/update.bash +++ b/lib/time/update.bash @@ -5,7 +5,7 @@ # This script rebuilds the time zone files using files # downloaded from the ICANN/IANA distribution. -# Consult http://www.iana.org/time-zones for the latest versions. +# Consult https://www.iana.org/time-zones for the latest versions. # Versions to use. CODE=2017c @@ -16,8 +16,8 @@ rm -rf work mkdir work cd work mkdir zoneinfo -curl -L -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz -curl -L -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz +curl -L -O https://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz +curl -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz tar xzf tzcode$CODE.tar.gz tar xzf tzdata$DATA.tar.gz @@ -42,10 +42,9 @@ zip -0 -r ../../zoneinfo.zip * cd ../.. echo -if [ "$1" = "-work" ]; then +if [ "$1" = "-work" ]; then echo Left workspace behind in work/. else rm -rf work fi echo New time zone files in zoneinfo.zip. - |