Ubuntu 18.04 Upgrade #3

Merged
RoshanSyed merged 143 commits from github/fork/PBSA/master into master 2019-09-03 16:20:50 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 09975ce12b - Show all commits

View file

@ -40,11 +40,12 @@ namespace fc {
struct request
{
fc::string get_header( const fc::string& key )const;
fc::string remote_endpoint;
fc::string method;
fc::string domain;
fc::string path;
std::vector<header> headers;
std::vector<char> body;
std::vector<header> headers;
std::vector<char> body;
};
std::vector<header> parse_urlencoded_params( const fc::string& f );

View file

@ -134,6 +134,7 @@ fc::tcp_socket& connection::get_socket()const {
http::request connection::read_request()const {
http::request req;
req.remote_endpoint = fc::variant(get_socket().remote_endpoint()).as_string();
std::vector<char> line(1024*8);
int s = my->read_until( line.data(), line.data()+line.size(), ' ' ); // METHOD
req.method = line.data();