Mercurial > mplayer.hg
comparison libmpdemux/http.c @ 3784:8b7722329a27
warning fix == cleanup
author | arpi |
---|---|
date | Thu, 27 Dec 2001 01:53:25 +0000 |
parents | 43518985def8 |
children | 44c74b600573 |
comparison
equal
deleted
inserted
replaced
3783:de6b00131e95 | 3784:8b7722329a27 |
---|---|
68 | 68 |
69 int | 69 int |
70 http_is_header_entire( HTTP_header_t *http_hdr ) { | 70 http_is_header_entire( HTTP_header_t *http_hdr ) { |
71 if( http_hdr==NULL ) return -1; | 71 if( http_hdr==NULL ) return -1; |
72 | 72 |
73 if( strstr(http_hdr->buffer, "\r\n\r\n")==NULL ) { | 73 if( strstr(http_hdr->buffer, "\r\n\r\n")==NULL && |
74 if( strstr(http_hdr->buffer, "\n\n")==NULL ) return 0; | 74 strstr(http_hdr->buffer, "\n\n")==NULL ) return 0; |
75 } | 75 } |
76 else return 1; | 76 return 1; |
77 } | 77 } |
78 | 78 |
79 int | 79 int |
80 http_response_parse( HTTP_header_t *http_hdr ) { | 80 http_response_parse( HTTP_header_t *http_hdr ) { |
81 char *hdr_ptr, *ptr; | 81 char *hdr_ptr, *ptr; |