server: Removed write to content_encoding (this is a read-only property of Request). dispatch/request: Added "ensure_headers_written" and call it from init. This makes sure the HTTP headers are written even if there is no HTML header and footer and nothing else is written either.