Since there are only two CGI modes, this code disappears.

As discussed with fijal.
Update tests that expect a newline before headers.

In response to: 4fcbc1bb993f975ac7bd6f5c22d58a00fc49d8d9.