Skip to content

Commit

Permalink
publicsuffix: update table to latest list from publicsuffix.org
Browse files Browse the repository at this point in the history
Update the list to revision revision dbe9da0a8abeab1b6257c57668d1ecb584189951
(2020-05-27T00:50:31Z).

While here: Fix two wrong formating verbs in the code generating the
table.

Change-Id: Iaa59b313a1d38b06695b8f44acc81230a52e3c14
Reviewed-on: https://go-review.googlesource.com/c/net/+/235397
Reviewed-by: Nigel Tao <nigeltao@golang.org>
  • Loading branch information
vdobler authored and nigeltao committed May 28, 2020
1 parent 0ba52f6 commit 3c3fba1
Show file tree
Hide file tree
Showing 3 changed files with 10,021 additions and 9,742 deletions.
4 changes: 2 additions & 2 deletions publicsuffix/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func main1() error {
return err
}
if res.StatusCode != http.StatusOK {
return fmt.Errorf("bad GET status for %s: %d", *url, res.Status)
return fmt.Errorf("bad GET status for %s: %s", *url, res.Status)
}
r = res.Body
defer res.Body.Close()
Expand Down Expand Up @@ -270,7 +270,7 @@ func gitCommit() (sha, date string, retErr error) {
return "", "", err
}
if res.StatusCode != http.StatusOK {
return "", "", fmt.Errorf("bad GET status for %s: %d", gitCommitURL, res.Status)
return "", "", fmt.Errorf("bad GET status for %s: %s", gitCommitURL, res.Status)
}
defer res.Body.Close()
b, err := ioutil.ReadAll(res.Body)
Expand Down
Loading

0 comments on commit 3c3fba1

Please sign in to comment.