From f11e1360680a60fcec3deaa4e5f1f49c355abfcf Mon Sep 17 00:00:00 2001 From: Slawomir Jasinski Date: Thu, 18 Jun 2015 09:12:35 +1000 Subject: [PATCH] Update fcgiclient.go --- middleware/fastcgi/fcgiclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/fastcgi/fcgiclient.go b/middleware/fastcgi/fcgiclient.go index 70ddfbe2..b657a3b3 100644 --- a/middleware/fastcgi/fcgiclient.go +++ b/middleware/fastcgi/fcgiclient.go @@ -380,7 +380,7 @@ func (c *FCGIClient) Request(p map[string]string, req io.Reader) (resp *http.Res if err != nil { return } - if len(statusParts) > 0 { + if len(statusParts) > 1 { resp.Status = statusParts[1] }