REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2720
Force connection close before the next request if
the server identifies as version 1.0.
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
HttpInstance->CacheLen = BodyLen;\r
}\r
\r
+ //\r
+ // Check server's HTTP version.\r
+ //\r
+ if (AsciiStrnCmp (HttpHeaders, "HTTP/1.0", sizeof ("HTTP/1.0") - 1) == 0) {\r
+ DEBUG ((DEBUG_VERBOSE, "HTTP: Server version is 1.0. Setting Connection close.\n"));\r
+ HttpInstance->ConnectionClose = TRUE;\r
+ }\r
+\r
//\r
// Search for Status Code.\r
//\r