Changeset 482
- Timestamp:
- 07/28/2005 09:05:16 PM (3 years ago)
- Location:
- branches/lighttpd-1.3.x/src
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/src/base.h
r475 r482 235 235 unsigned short use_xattr; 236 236 unsigned short follow_symlink; 237 unsigned short range_requests; 237 238 238 239 /* debug */ -
branches/lighttpd-1.3.x/src/config.c
r475 r482 78 78 { "dir-listing.encoding", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, /* 41 */ 79 79 { "server.errorlog-use-syslog", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 42 */ 80 { "server.range-requests", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 43 */ 80 81 81 82 { "server.host", "use server.bind instead", T_CONFIG_DEPRECATED, T_CONFIG_SCOPE_UNSET }, … … 143 144 s->kbytes_per_second = 0; 144 145 s->allow_http11 = 1; 146 s->range_requests = 1; 145 147 s->global_kbytes_per_second = 0; 146 148 s->global_bytes_per_second_cnt = 0; … … 183 185 cv[40].destination = s->dirlist_css; 184 186 cv[41].destination = s->dirlist_encoding; 187 cv[43].destination = &(s->range_requests); 185 188 186 189 srv->config_storage[i] = s; … … 229 232 PATCH(log_file_not_found); 230 233 234 PATCH(range_requests); 235 231 236 return 0; 232 237 } … … 254 259 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.dir-listing"))) { 255 260 PATCH(dir_listing); 261 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.range-requests"))) { 262 PATCH(range_requests); 256 263 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("dir-listing.hide-dotfiles"))) { 257 264 PATCH(hide_dotfiles); -
branches/lighttpd-1.3.x/src/response.c
r470 r482 1291 1291 */ 1292 1292 1293 con->uri.path->used -= strlen(pathinfo);1293 con->uri.path->used -= con->request.pathinfo->used - 1; 1294 1294 con->uri.path->ptr[con->uri.path->used - 1] = '\0'; 1295 1295 } … … 1452 1452 http_response_handle_cachable(srv, con, con->fce->st.st_mtime); 1453 1453 1454 if (con->http_status == 0 && con->request.http_range) { 1454 if (con->conf.range_requests && 1455 con->http_status == 0 && 1456 con->request.http_range) { 1455 1457 http_response_parse_range(srv, con); 1456 1458 } else if (con->http_status == 0) {

