summaryrefslogtreecommitdiffstats
path: root/libmpdemux/http.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-27 01:53:25 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-27 01:53:25 +0000
commit9f9882d01bb197a641ce46e130ca129e617e2777 (patch)
tree3eb99e25904b5ce9ad8db4278490968112e15c05 /libmpdemux/http.c
parentf197efd5c23cca28431a6ca0ecc28ac0b3d3ae7f (diff)
downloadmpv-9f9882d01bb197a641ce46e130ca129e617e2777.tar.bz2
mpv-9f9882d01bb197a641ce46e130ca129e617e2777.tar.xz
warning fix == cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3785 b3059339-0415-0410-9bf9-f77b7e298cf2
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