fixed typo in http range check

This commit is contained in:
sb1066 2010-07-11 17:22:31 +00:00
parent 98202725cb
commit aa677995b8

View file

@ -444,7 +444,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
if(file_end < 0 || file_end >= st.st_size)
return 200;
if(file_start > 0 || file_end)
if(file_start > file_end)
return 200;
content_len = file_end - file_start+1;