Remove trailing new line for cleaner log output.
Return correct status code.pull/429/head
parent
b7fd1f4e9e
commit
3966936bd6
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue