Adds connection: close to test server

The test http server does not really support connection reuse. After
each request, the connection is closed. When a url returns a redirction,
curl will try to reuse the previous connection, and fail.

This was ok before, because this kind of failure didn't count into the
total number of connection failure. But things changed in latest curl.
The max redirection is actually capped by 5, the max allowed connection
failure.

This change adds "Connection: close" header to test server. So that curl
will not try to reuse connecton.

Test: atest update_engine_unittests
Change-Id: I443c28ff3760a1cad80cfd40e354e1d0328f7561
diff --git a/test_http_server.cc b/test_http_server.cc
index 4fc89e5..1c3a2e0 100644
--- a/test_http_server.cc
+++ b/test_http_server.cc
@@ -189,7 +189,8 @@
   ret = WriteString(fd,
                     string("HTTP/1.1 ") + Itoa(return_code) + " " +
                         GetHttpResponseDescription(return_code) +
-                        EOL "Content-Type: application/octet-stream" EOL);
+                        EOL "Content-Type: application/octet-stream" EOL
+                        "Connection: close" EOL);
   if (ret < 0)
     return -1;
   written += ret;
@@ -406,7 +407,9 @@
   if ((ret = WriteString(fd, "HTTP/1.1 " + Itoa(code) + " " + status + EOL)) <
       0)
     return;
+  WriteString(fd, "Connection: close" EOL);
   WriteString(fd, "Location: " + url + EOL);
+
 }
 
 // Generate a page not found error response with actual text payload. Return