"true" and "false" are compatibility with old version, will be removed */
| 276 | "true" and "false" are compatibility with old version, will be removed |
| 277 | */ |
| 278 | void |
| 279 | HostConfiguration::set_range_request(const std::string &token) |
| 280 | { |
| 281 | if (token == "true" || token == "none") { |
| 282 | range_request_ctl_ = RangeRequestCtrl::NONE; |
| 283 | } else if (token == "false" || token == "no-compression") { |
| 284 | range_request_ctl_ = RangeRequestCtrl::NO_COMPRESSION; |
| 285 | } else if (token == "remove-range") { |
| 286 | range_request_ctl_ = RangeRequestCtrl::REMOVE_RANGE; |
| 287 | } else if (token == "remove-accept-encoding") { |
| 288 | range_request_ctl_ = RangeRequestCtrl::REMOVE_ACCEPT_ENCODING; |
| 289 | } else { |
| 290 | error("invalid token for range_request: %s", token.c_str()); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | Configuration * |
| 295 | Configuration::Parse(const char *path) |