]> git.plutz.net Git - lobster/commitdiff
bugfix: 404 on non existing card
authorPaul Hänsch <paul@plutz.net>
Mon, 13 Jan 2020 18:32:36 +0000 (19:32 +0100)
committerPaul Hänsch <paul@plutz.net>
Mon, 13 Jan 2020 18:32:36 +0000 (19:32 +0100)
cards/export_card.sh

index e9356a90610e0bf3d7b326b0fd394aec7b7470af..def0b2dbbf6f06ba03b5832a39f1674304e5c6cb 100755 (executable)
@@ -24,4 +24,5 @@ if [ -f "$cardfile" ]; then
   . $_EXEC/cgilite/file.sh
   FILE "$cardfile" "text/vcard/charset=utf-8"
 else
+  printf 'Status: 404 Not Found\r\nContent-Length: 0\r\n\r\n'
 fi