Diff options
authorPeter Colberg <peter@colberg.org>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
ui-repolist: return HTTP 404 if no repositories found
Return HTTP status code 404 Not found when querying a non-existent repository, which signals to search engines that a repository no longer exists. Further, some webservers such as nginx permit logging requests to different files depending on the HTTP code. Signed-off-by: Peter Colberg <peter@colberg.org>
Diffstat (limited to '')
-rw-r--r--ui-repolist.c20
1 file changed, 17 insertions, 3 deletions