httpd: set header_only flag when body is empty