added content-type header to http_connection
This commit is contained in:
parent
55b0daa8aa
commit
23f89f0655
2 changed files with 3 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ namespace fc {
|
|||
class path;
|
||||
namespace ssh {
|
||||
namespace detail {
|
||||
struct client_impl;
|
||||
struct process_impl;
|
||||
class client_impl;
|
||||
class process_impl;
|
||||
};
|
||||
|
||||
enum sftp_file_type {
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ http::reply connection::request( const fc::string& method,
|
|||
fc::stringstream req;
|
||||
req << method <<" "<<url<<" HTTP/1.1\r\n";
|
||||
req << "Host: localhost\r\n";
|
||||
req << "Content-Type: application/json\r\n";
|
||||
if( body.size() ) req << "Content-Length: "<< body.size() << "\r\n";
|
||||
req << "\r\n";
|
||||
fc::string head = req.str();
|
||||
|
|
|
|||
Loading…
Reference in a new issue