improves cgi error handling and allows requests with empty headers

more windows porting

(0) -100 -30 -10 -2 +2 +10 +30 +100 +300 tip

mercurial