MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / allow_header

Method allow_header

boost-http/http-client.cpp:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected