rday/web — pull request #2 by hraban (2012-09-25 11:14:10+00:00)
Title: Use "net/http/fcgi" package instead of custom FCGI

This obsoletes most of fcgi.go, which was just a reimplementation of net/http/fcgi. It also fixes a bug where status headers are not properly sent over FCGI (404 -> 200, 500 -> 200, etc).

Additionally, there was a bug in web.go where trying to read from a nil buffer caused a panic. This was fixed by adding a != nil test before attempting the read. It only came up now because the custom connection code never sent nil buffers, but net/http/fcgi does, apparently.