|
@@ -1105,6 +1105,14 @@ HttpResponseWorker (
|
|
|
HttpInstance->CacheLen = BodyLen;
|
|
|
}
|
|
|
|
|
|
+ //
|
|
|
+ // Check server's HTTP version.
|
|
|
+ //
|
|
|
+ if (AsciiStrnCmp (HttpHeaders, "HTTP/1.0", sizeof ("HTTP/1.0") - 1) == 0) {
|
|
|
+ DEBUG ((DEBUG_VERBOSE, "HTTP: Server version is 1.0. Setting Connection close.\n"));
|
|
|
+ HttpInstance->ConnectionClose = TRUE;
|
|
|
+ }
|
|
|
+
|
|
|
//
|
|
|
// Search for Status Code.
|
|
|
//
|