| 1104 | }; |
| 1105 | |
| 1106 | static std::string to_lower_copy(const std::string & value) { |
| 1107 | std::string lowered(value.size(), '\0'); |
| 1108 | std::transform(value.begin(), value.end(), lowered.begin(), [](unsigned char c) { return std::tolower(c); }); |
| 1109 | return lowered; |
| 1110 | } |
| 1111 | |
| 1112 | static bool should_strip_proxy_header(const std::string & header_name) { |
| 1113 | // Headers that get duplicated when router forwards child responses |
no test coverage detected