2 ===================================================================
3 --- configure.in (.../tags/lighttpd-1.4.18) (revision 2015)
4 +++ configure.in (.../branches/lighttpd-1.4.x) (revision 2015)
7 # Process this file with autoconf to produce a configure script.
9 -AC_INIT(lighttpd, 1.4.18, jan@kneschke.de)
10 +AC_INIT(lighttpd, 1.4.19, jan@kneschke.de)
11 AC_CONFIG_SRCDIR([src/server.c])
14 Index: src/configfile-glue.c
15 ===================================================================
16 --- src/configfile-glue.c (.../tags/lighttpd-1.4.18) (revision 2015)
17 +++ src/configfile-glue.c (.../branches/lighttpd-1.4.x) (revision 2015)
22 + case COMP_HTTP_SCHEME:
23 + l = con->uri.scheme;
30 ===================================================================
31 --- src/array.h (.../tags/lighttpd-1.4.18) (revision 2015)
32 +++ src/array.h (.../branches/lighttpd-1.4.x) (revision 2015)
36 COMP_HTTP_QUERYSTRING,
41 Index: src/mod_staticfile.c
42 ===================================================================
43 --- src/mod_staticfile.c (.../tags/lighttpd-1.4.18) (revision 2015)
44 +++ src/mod_staticfile.c (.../branches/lighttpd-1.4.x) (revision 2015)
46 /* if the value is the same as our ETag, we do a Range-request,
47 * otherwise a full 200 */
49 - if (!buffer_is_equal(ds->value, con->physical.etag)) {
50 + if (ds->value->ptr[0] == '"') {
52 + * client wants a ETag
54 + if (!con->physical.etag) {
55 + do_range_request = 0;
56 + } else if (!buffer_is_equal(ds->value, con->physical.etag)) {
57 + do_range_request = 0;
59 + } else if (!mtime) {
61 + * we don't have a Last-Modified and can match the If-Range:
66 + } else if (!buffer_is_equal(ds->value, mtime)) {
67 + do_range_request = 0;
72 ===================================================================
73 --- src/response.c (.../tags/lighttpd-1.4.18) (revision 2015)
74 +++ src/response.c (.../branches/lighttpd-1.4.x) (revision 2015)
76 buffer_copy_string_buffer(con->uri.authority, con->request.http_host);
77 buffer_to_lower(con->uri.authority);
79 + config_patch_connection(srv, con, COMP_HTTP_SCHEME); /* Scheme: */
80 config_patch_connection(srv, con, COMP_HTTP_HOST); /* Host: */
81 config_patch_connection(srv, con, COMP_HTTP_REMOTEIP); /* Client-IP */
82 config_patch_connection(srv, con, COMP_HTTP_REFERER); /* Referer: */
83 Index: src/configparser.y
84 ===================================================================
85 --- src/configparser.y (.../tags/lighttpd-1.4.18) (revision 2015)
86 +++ src/configparser.y (.../branches/lighttpd-1.4.x) (revision 2015)
88 { COMP_HTTP_COOKIE, CONST_STR_LEN("HTTP[\"cookie\"]" ) },
89 { COMP_HTTP_REMOTEIP, CONST_STR_LEN("HTTP[\"remoteip\"]" ) },
90 { COMP_HTTP_QUERYSTRING, CONST_STR_LEN("HTTP[\"querystring\"]") },
91 + { COMP_HTTP_SCHEME, CONST_STR_LEN("HTTP[\"scheme\"]" ) },
92 { COMP_UNSET, NULL, 0 },
95 Index: doc/configuration.txt
96 ===================================================================
97 --- doc/configuration.txt (.../tags/lighttpd-1.4.18) (revision 2015)
98 +++ doc/configuration.txt (.../branches/lighttpd-1.4.x) (revision 2015)
109 ===================================================================
110 --- NEWS (.../tags/lighttpd-1.4.18) (revision 2015)
111 +++ NEWS (.../branches/lighttpd-1.4.x) (revision 2015)
118 + * added support for If-Range: <date> (#1346)
119 + * added support for matching $HTTP["scheme"] in configs
121 - 1.4.18 - 2007-09-09
123 * fixed compile error on IRIX 6.5.x on prctl() (#1333)