Last active
May 22, 2024 07:38
-
-
Save mathiasbynens/1356094dccf7f15f8e2f to your computer and use it in GitHub Desktop.
Get the latest version of https://chromium.googlesource.com/chromium/src/+/master/net/http/transport_security_state_static.json in an automated way and convert it to proper JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://code.google.com/p/chromium/issues/detail?id=226801 | |
url='https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT'; | |
curl -#s "${url}" | \ | |
base64 --decode | \ | |
sed '/^ *\/\// d' | \ | |
sed '/^\s*$/d' > hsts.json; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And then they decide to change the URL for no reason... it is
https://chromium.googlesource.com/chromium/src/+/main/net/http/transport_security_state_static.json?format=TEXT
now.