mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-12-05 00:34:08 +00:00
pass const strings for HTTP headers
This commit is contained in:
1 parent
06e3a1b57a
commit
0046a8b3ec
3 files changed
+15
-12
No files matched your search
+1
-1
@@ -269,7 +269,7 @@ namespace http
|
||||
return host.rfind(".i2p") == ( host.size() - 4 );
|
||||
}
|
||||
|
||||
void HTTPMsg::add_header(const char *name, std::string & value, bool replace) {
|
||||
void HTTPMsg::add_header(const char *name, const std::string & value, bool replace) {
|
||||
add_header(name, value.c_str(), replace);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user