Fix broken handling of HTTP headers & response codes set by the CGI program.