| 69 | |
| 70 | private: |
| 71 | static bool allow_header(std::string name) { |
| 72 | std::transform(name.begin(), name.end(), name.begin(), [](unsigned char c) { return std::tolower(c); }); |
| 73 | |
| 74 | return !(name == "host" || name == "connection" || name == "transfer-encoding" || name == "content-length"); |
| 75 | } |
| 76 | |
| 77 | void on_resolve(beast::error_code error, tcp::resolver::results_type results) { |
| 78 | if (error) { |
nothing calls this directly
no outgoing calls
no test coverage detected