yhirose/cpp-httplib

"Get" method can not receive body

LongTengYiFei opened this issue · 2 comments

svr.Get("/hi", [](const httplib::Request & req, httplib::Response &res) {
cout<<req.body<<endl;
});

The req.body is an empty string.

@LongTengYiFei it's too little information...

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.