File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class MyController : public oatpp::web::server::api::ApiController {
7272
7373 Action act () override {
7474 /* return Action to start child coroutine to read body */
75- return request->readBodyToStringAsync (this , &EchoStringBody::returnResponse);
75+ return request->readBodyToStringAsync (). callbackTo ( &EchoStringBody::returnResponse);
7676 }
7777
7878 Action returnResponse (const oatpp::String& body){
@@ -92,7 +92,7 @@ class MyController : public oatpp::web::server::api::ApiController {
9292 ENDPOINT_ASYNC_INIT (EchoDtoBody)
9393
9494 Action act () override {
95- return request->readBodyToDtoAsync <MessageDto>(this , &EchoDtoBody::returnResponse, controller->getDefaultObjectMapper ());
95+ return request->readBodyToDtoAsync <MessageDto>(controller->getDefaultObjectMapper ()). callbackTo (&EchoDtoBody::returnResponse );
9696 }
9797
9898 Action returnResponse (const MessageDto::ObjectWrapper& body){
You can’t perform that action at this time.
0 commit comments