diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-09-10 21:51:55 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-09-10 21:57:15 +0100 |
commit | 14987b0be21689eeac1371e6489d59f297c93b6e (patch) | |
tree | 0509123cec48c2999b3a61b7b3faf9688d93012f /open-source-lorries/gcc-tarball.lorry | |
parent | 1fa0571d0658f6196d31402e63457735e5fcf291 (diff) | |
download | lorries-bwh/url-check-fixes.tar.gz |
scripts/check-lorry-urls: Check for archive URLs pointing to non-archivesbwh/url-check-fixes
Some sites serve generic HTML pages with status 200 for missing files,
instead of status 404. Check that the Content-Type is not text/html.
(We can't check for a "correct" Content-Type, as archives might be
served with almost any other type.)
Also check that the file is not empty (Content-Length: 0), as this
can't be a valid archive.
Diffstat (limited to 'open-source-lorries/gcc-tarball.lorry')
0 files changed, 0 insertions, 0 deletions