* HTTP.{cpp,h} : add add_header() variant with std::string
This commit is contained in:
4
HTTP.cpp
4
HTTP.cpp
@@ -193,6 +193,10 @@ namespace http {
|
||||
return out;
|
||||
}
|
||||
|
||||
void HTTPMsg::add_header(const char *name, std::string & value, bool replace) {
|
||||
add_header(name, value.c_str(), replace);
|
||||
}
|
||||
|
||||
void HTTPMsg::add_header(const char *name, const char *value, bool replace) {
|
||||
std::size_t count = headers.count(name);
|
||||
if (count && !replace)
|
||||
|
Reference in New Issue
Block a user