Changeset 1947
- Timestamp:
- 08/18/2007 11:14:12 AM (13 months ago)
- Location:
- branches/lighttpd-1.4.x
- Files:
-
- 3 modified
-
NEWS (modified) (1 diff)
-
src/request.c (modified) (2 diffs)
-
tests/request.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.4.x/NEWS
r1946 r1947 20 20 * fixed possible overflow in unix-socket path checks on BSD (#713) 21 21 * fixed extra Content-Length header on 1xx, 204 and 304 (#1002) 22 * fixed handling of duplicate If-Modified-Since to return 304 22 23 * removed config-check if passwd files exist (#1188) 23 24 -
branches/lighttpd-1.4.x/src/request.c
r1928 r1947 923 923 ds->value->ptr)) { 924 924 /* ignore it if they are the same */ 925 926 ds->free((data_unset *)ds); 927 ds = NULL; 925 928 } else { 926 929 con->http_status = 400; … … 978 981 } 979 982 980 array_insert_unique(con->request.headers, (data_unset *)ds);983 if (ds) array_insert_unique(con->request.headers, (data_unset *)ds); 981 984 } else { 982 985 /* empty header-fields are not allowed by HTTP-RFC, we just ignore them */ -
branches/lighttpd-1.4.x/tests/request.t
r1946 r1947 340 340 341 341 $t->{REQUEST} = ( <<EOF 342 GET / HTTP/1.0343 If-Modified-Since: Sun, 1970 Jan 01 00:00:01GMT344 If-Modified-Since: Sun, 1970 Jan 01 00:00:01GMT345 EOF 346 ); 347 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200} ];342 GET /index.html HTTP/1.0 343 If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT 344 If-Modified-Since: Sun, 01 Jan 2100 00:00:02 GMT 345 EOF 346 ); 347 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304 } ]; 348 348 ok($tf->handle_http($t) == 0, 'Duplicate If-Mod-Since, with equal timestamps'); 349 349

