This works now with thttpd 2.19. Thanks to Andrzej Borsuk <andrzej.borsuk@alfaelektro.com.pl> for pointing me into the right direction.