| 118 | } |
| 119 | |
| 120 | void |
| 121 | HostConfiguration::update_defaults() |
| 122 | { |
| 123 | // maintain backwards compatibility/usability out of the box |
| 124 | if (compressible_status_codes_.empty()) { |
| 125 | compressible_status_codes_ = {TS_HTTP_STATUS_OK, TS_HTTP_STATUS_PARTIAL_CONTENT, TS_HTTP_STATUS_NOT_MODIFIED}; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | void |
| 130 | HostConfiguration::add_allow(const std::string &allow) |