"Get" method can not receive body
LongTengYiFei opened this issue · 2 comments
LongTengYiFei commented
svr.Get("/hi", [](const httplib::Request & req, httplib::Response &res) {
cout<<req.body<<endl;
});
The req.body is an empty string.
yhirose commented
@LongTengYiFei it's too little information...
LongTengYiFei commented
i mean, when i use Post, the req can receive body. But when i use Get, the req can not receive body, whatever the body of request i set, the req.body is always empty.