+2005-07-22 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * JSStringTable.m: if 'if-none-match' is not set, do not return a 304
+ (v4.5.78)
+
2005-07-20 Marcus Mueller <znek@mulle-kybernetik.com>
* WEExtensions.xcodeproj: added JSStringTable, bumped framework version
for all instances.
*/
char buf[32];
- sprintf(buf, "stamp_%d", ((unsigned)time(NULL) - 1121785679));
+ sprintf(buf, "\"stamp_%d\"", ((unsigned)time(NULL) - 1121785679));
etag = [[NSString alloc] initWithCString:buf];
}
/* check preconditions */
s = [[[self context] request] headerForKey:@"if-none-match"];
- if ([s rangeOfString:etag].length > 0) {
+ if (s && [s rangeOfString:etag].length > 0) {
/* client already has the proper entity */
[r setStatus:304 /* Not Modified */];
return r;