Merge pull request #396 from PlasmaPower/fix-callback-content-type

Set callback Content-Type to application/json
This commit is contained in:
androm3da 2018-01-05 19:53:16 -06:00 committed by GitHub
commit 1d37236564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1410,6 +1410,7 @@ block_processor_thread ([this] () { this->block_processor.process_blocks (); })
req->target (*target);
req->version (11);
req->insert(boost::beast::http::field::host, address);
req->insert(boost::beast::http::field::content_type, "application/json");
req->body() = *body;
//req->prepare (*req);
//boost::beast::http::prepare(req);