summaryrefslogtreecommitdiffstats
path: root/libmpdemux/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/http.c')
-rw-r--r--libmpdemux/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/http.c b/libmpdemux/http.c
index 589ae73f2e..4d5dfd8d17 100644
--- a/libmpdemux/http.c
+++ b/libmpdemux/http.c
@@ -70,10 +70,10 @@ int
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