changeset 3784:8b7722329a27

warning fix == cleanup
author arpi
date Thu, 27 Dec 2001 01:53:25 +0000
parents de6b00131e95
children 44c74b600573
files libmpdemux/http.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/http.c	Thu Dec 27 00:59:40 2001 +0000
+++ b/libmpdemux/http.c	Thu Dec 27 01:53:25 2001 +0000
@@ -70,10 +70,10 @@
 http_is_header_entire( HTTP_header_t *http_hdr ) {
 	if( http_hdr==NULL ) return -1;
 
-	if( strstr(http_hdr->buffer, "\r\n\r\n")==NULL ) {
-		if( strstr(http_hdr->buffer, "\n\n")==NULL ) return 0;
+	if( strstr(http_hdr->buffer, "\r\n\r\n")==NULL &&
+	    strstr(http_hdr->buffer, "\n\n")==NULL ) return 0;
 	}
-	else return 1;
+	return 1;
 }
 
 int