- make sure the etag buffer is non empty if we compare it with if-non-match
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1971 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.17
parent
53634de06f
commit
15d8378422
|
@ -5,7 +5,7 @@
|
|||
#include "etag.h"
|
||||
|
||||
int etag_is_equal(buffer *etag, const char *matches) {
|
||||
if (0 == strcmp(etag->ptr, matches)) return 1;
|
||||
if (etag && !buffer_is_empty(etag) && 0 == strcmp(etag->ptr, matches)) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue