mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dhtproxy: add support for legacy http methods
Legacy non-standard http methods: LISTEN, STATS, SIGN, ECNRYPT NOTE: Supported with RESTinio > 0.5.0 and custom http_parser - https://github.com/Stiffstream/restinio/issues/26 - https://github.com/binarytrails/http-parser
This commit is contained in:
1 parent
fc3686d817
commit
f8d62dc6a7
5 files changed
+62
-15
No files matched your search
+1
-2
@@ -99,8 +99,7 @@ Client::create_request(const restinio::http_request_header_t header,
|
||||
const std::string body){
|
||||
std::stringstream request;
|
||||
// first header
|
||||
request << restinio::method_to_string(header.method()) << " " <<
|
||||
header.request_target() << " " <<
|
||||
request << header.method().c_str() << " " << header.request_target() << " " <<
|
||||
"HTTP/" << header.http_major() << "." << header.http_minor() << "\r\n";
|
||||
// other headers
|
||||
for (auto header_field: header_fields)
|
||||
|
||||
Reference in new issue
Block a user