Needs to be merged to 5.4 after r323078 is merged.
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
--EXPECTF--
HTTP/1.1 401 Unauthorized
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
WWW-Authenticate: Digest realm="foo",qop="auth",nonce="XXXXX",opaque="acbd18db4cc2f85cedef654fccc4a4d8"
Content-type: text/html
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
string(8) "HTTP/1.1"
HTTP/1.0 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
string(8) "/foo/bar"
HTTP/1.0 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
string(7) "foo=bar"
HTTP/1.0 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html
HTTP/1.1 404 Not Found
Host: %s
-Connection: closed
+Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: %d
</head><body><h1 class="h">Not Found</h1><p>The requested resource / was not found on this server.</p></body></html>
HTTP/1.1 404 Not Found
Host: %s
-Connection: closed
+Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: %d
</head><body><h1 class="h">Not Found</h1><p>The requested resource /main/style.css was not found on this server.</p></body></html>
HTTP/1.1 404 Not Found
Host: %s
-Connection: closed
+Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: %d
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: %s
Content-type: %s
done
HTTP/1.1 404 Not Found
Host: %s
-Connection: closed
+Connection: close
Content-Type: %s
Content-Length: %d
--EXPECTF--
HTTP/1.1 200 OK
Host: %s
-Connection: closed
+Connection: close
X-Powered-By: PHP/%s
Content-type: text/html