Commit 1ac32a52 authored by Thomas Hansen's avatar Thomas Hansen

generalizing fastcgi parameters, and improving headers passed.

parent 9e12c45d
This diff is collapsed.
......@@ -376,10 +376,13 @@ func (this *FCGIClient) Request(p map[string]string, req io.Reader) (resp *http.
if resp.Header.Get("Status") != "" {
statusParts := strings.SplitN(resp.Header.Get("Status"), " ", 2)
resp.StatusCode, _ = strconv.Atoi(statusParts[0])
resp.StatusCode, err = strconv.Atoi(statusParts[0])
if err != nil {
return
}
resp.Status = statusParts[1]
} else {
resp.StatusCode = 200
resp.StatusCode = http.StatusOK
}
// TODO: fixTransferEncoding ?
......
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