Commit 3966936b authored by Abiola Ibrahim's avatar Abiola Ibrahim

Remove trailing new line for cleaner log output.

Return correct status code.
parent b7fd1f4e
......@@ -117,10 +117,11 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
// FastCGI stderr outputs
if fcgi.stderr.Len() != 0 {
err = LogError(fcgi.stderr.String())
// Remove trailing newline, error logger already does this.
err = LogError(strings.TrimSuffix(fcgi.stderr.String(), "\n"))
}
return 0, err
return resp.StatusCode, err
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment