Skip to content

Commit c469521

Browse files
ksshannonbradfitz
authored andcommitted
lib/time: follow redirects in curl
Starting on or about the 2018c archives, www.iana.org is redirected to data.iana.org. Tell curl to follow the redirect. Updates: #22487 Change-Id: I00acada1a3ba01ef701d6d4ffae6cc2cbb6a068f Reviewed-on: https://go-review.googlesource.com/89375 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 7eaa8ef commit c469521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/time/update.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ rm -rf work
1616
mkdir work
1717
cd work
1818
mkdir zoneinfo
19-
curl -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
20-
curl -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
19+
curl -L -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
20+
curl -L -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
2121
tar xzf tzcode$CODE.tar.gz
2222
tar xzf tzdata$DATA.tar.gz
2323

0 commit comments

Comments
 (0)