caddy/middleware/fastcgi
Matthew Holt 2a46f2a14e Revert recent Content-Length-related changes and fix fastcgi return
fastcgi's ServeHTTP method originally returned the correct value (0) in
b51e8bc191. Later, I mistakenly suggested
we change that to return the status code because I forgot that status
codes aren't logged by the return value. So fastcgi broke due in
3966936bd6 due to my error.

We later had to try to make up for this with ugly Content-Length checks
like in c37ad7f677. Turns out that all we
had to do was fix the returned status here back to 0. The proxy
middleware behaves the same way, and returning 0 is correct. We should
only return a status code if the response has not been written, but with
upstream servers, we do write a response; they do not know about our
error handler.

Also clarifed this in the middleware.Handler documentation.
2016-03-02 11:33:40 -07:00
..
fastcgi_test.go Revert recent Content-Length-related changes and fix fastcgi return 2016-03-02 11:33:40 -07:00
fastcgi.go Revert recent Content-Length-related changes and fix fastcgi return 2016-03-02 11:33:40 -07:00
fcgi_test.php Inlined a fixed version of the fastcgi_client dependency 2015-01-29 23:48:35 -07:00
fcgiclient_test.go gofmt -s; fix misspellings and lint; Go 1.5.3 in Travis CI 2016-02-14 00:10:57 -07:00
fcgiclient.go New function DialWithDialer to create FCGIClient with custom Dialer. 2016-02-10 18:03:43 +03:00