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:
Seva committed 2019-06-06 13:30:37 -04:00
1 parent fc3686d817
commit f8d62dc6a7
5 files changed
+62 -15

No files matched your search

+1 -2
View File
@@ -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)