]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Improve HTTP 204 error message
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 14 Nov 2023 21:41:23 +0000 (15:41 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 14 Nov 2023 21:41:23 +0000 (15:41 -0600)
commit575b4ecdd7f581807b9dfdda4441980395cf52c1
tree9b920f1cafe12c4d2a11e8867a827cffd9c54962
parentbec7fe108e0e46522f8817d53728aae4f4aa0b27
Improve HTTP 204 error message

Looks like Afrinic disabled RRDP, and they're returning 204 instead of
4xx or 5xx.

This was fooling Fort into thinking the file downloaded successfully,
which induced a crappier error message.

But regardless of Afrinic, an empty file is not a valid RPKI file,
so 204 (No Content) should probably be handled as an error anyway.
src/http/http.c