diff options
Diffstat (limited to 'NetworkPkg/HttpDxe/HttpProto.c')
-rw-r--r-- | NetworkPkg/HttpDxe/HttpProto.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.c index 1aa1816..925281a 100644 --- a/NetworkPkg/HttpDxe/HttpProto.c +++ b/NetworkPkg/HttpDxe/HttpProto.c @@ -1877,9 +1877,6 @@ HttpTcpReceiveHeader ( // Check whether we received end of HTTP headers.
//
*EndofHeader = AsciiStrStr (*HttpHeaders, HTTP_END_OF_HDR_STR);
- if (*EndofHeader != NULL) {
- *SizeofHeaders = *EndofHeader - *HttpHeaders;
- }
};
//
@@ -1979,9 +1976,6 @@ HttpTcpReceiveHeader ( // Check whether we received end of HTTP headers.
//
*EndofHeader = AsciiStrStr (*HttpHeaders, HTTP_END_OF_HDR_STR);
- if (*EndofHeader != NULL) {
- *SizeofHeaders = *EndofHeader - *HttpHeaders;
- }
};
//
@@ -2002,7 +1996,9 @@ HttpTcpReceiveHeader ( //
// Skip the CRLF after the HTTP headers.
//
- *EndofHeader = *EndofHeader + AsciiStrLen (HTTP_END_OF_HDR_STR);
+ *EndofHeader = *EndofHeader + AsciiStrLen (HTTP_END_OF_HDR_STR);
+
+ *SizeofHeaders = *EndofHeader - *HttpHeaders;
return EFI_SUCCESS;
}
|