-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you request a download that doesn't exist, the SQLite website
behaves in a very non-standard way.

For example the current download should be from a 2016 directory, but
if you instead request from a 2015 directory, you instead get HTTP 302
(temporary redirect) to /not-found.html on the site, where the latter
gives code 200.

To correct this, the downloads should give 404 directly, or the
/not-found.html page should be returned with code 404.  The current
behaviour turns something that doesn't exist into something that does!

$ wget -S http://sqlite.org/2015/sqlite-autoconf-3100000.tar.gz
- --2016-01-10 15:52:01--
http://sqlite.org/2015/sqlite-autoconf-3100000.tar.gz
Resolving sqlite.org (sqlite.org)... 67.18.92.124,
2600:3c00::f03c:91ff:fe96:b959
Connecting to sqlite.org (sqlite.org)|67.18.92.124|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 302 Temporary Redirect
  Connection: keep-alive
  Date: Sun, 10  Jan 2016 23:52:01 +0000
  Location: http://sqlite.org/not-found.html
  Content-length: 0
Location: http://sqlite.org/not-found.html [following]
- --2016-01-10 15:52:01--  http://sqlite.org/not-found.html
Reusing existing connection to sqlite.org:80.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Connection: keep-alive
  Date: Sun, 10  Jan 2016 23:52:01 +0000
  Last-Modified: Wed, 06  Jan 2016 19:05:04 +0000
  Content-type: text/html; charset=utf-8
  Content-length: 5189
Length: 5189 (5.1K) [text/html]

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlaS78oACgkQmOOfHg372QTdCgCeMLN8DMNDTIqw5Leusgjf0OwS
OzkAoMZzESmUE7NJL6sQM2dNaAch+D9/
=lgSE
-----END PGP SIGNATURE-----

Reply via email to