0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Merge pull request #131 from slav123/master

fastcgi: fix #127
This commit is contained in:
Matt Holt 2015-06-17 17:26:52 -06:00
commit 6b27d4ce11

View file

@ -380,7 +380,10 @@ func (c *FCGIClient) Request(p map[string]string, req io.Reader) (resp *http.Res
if err != nil { if err != nil {
return return
} }
resp.Status = statusParts[1] if len(statusParts) > 1 {
resp.Status = statusParts[1]
}
} else { } else {
resp.StatusCode = http.StatusOK resp.StatusCode = http.StatusOK
} }