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. ...@@ -376,10 +376,13 @@ func (this *FCGIClient) Request(p map[string]string, req io.Reader) (resp *http.
if resp.Header.Get("Status") != "" { if resp.Header.Get("Status") != "" {
statusParts := strings.SplitN(resp.Header.Get("Status"), " ", 2) 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] resp.Status = statusParts[1]
} else { } else {
resp.StatusCode = 200 resp.StatusCode = http.StatusOK
} }
// TODO: fixTransferEncoding ? // 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