From ccc335e3be9a8389afde03e852f3250bfd2d61c6 Mon Sep 17 00:00:00 2001 From: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:16:30 +0200 Subject: [PATCH 1/2] Update zcl_sicf.clas.abap --- srv/zcl_sicf.clas.abap | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/srv/zcl_sicf.clas.abap b/srv/zcl_sicf.clas.abap index 2016c9c..82774d5 100644 --- a/srv/zcl_sicf.clas.abap +++ b/srv/zcl_sicf.clas.abap @@ -10,15 +10,9 @@ CLASS zcl_sicf IMPLEMENTATION. METHOD if_http_extension~handle_request. - DATA lv_req TYPE string. - lv_req = server->request->get_cdata( ). - - DATA lv_resp TYPE string. - lv_resp = z2ui5_cl_http_handler=>main( lv_req ). - - server->response->set_cdata( lv_resp ). - server->response->set_header_field( name = `cache-control` value = `no-cache` ). - server->response->set_status( code = 200 reason = `success` ). + data lo_server type ref to z2ui5_cl_http_handler. + lo_server = z2ui5_cl_http_handler=>factory( server ) + lo_server->main( ). ENDMETHOD. From 52916f7cc055510d3c317a08c142ea871439b89a Mon Sep 17 00:00:00 2001 From: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com> Date: Tue, 24 Sep 2024 19:36:03 +0200 Subject: [PATCH 2/2] Update zcl_sicf.clas.abap --- srv/zcl_sicf.clas.abap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srv/zcl_sicf.clas.abap b/srv/zcl_sicf.clas.abap index 82774d5..7436b4e 100644 --- a/srv/zcl_sicf.clas.abap +++ b/srv/zcl_sicf.clas.abap @@ -11,7 +11,7 @@ CLASS zcl_sicf IMPLEMENTATION. METHOD if_http_extension~handle_request. data lo_server type ref to z2ui5_cl_http_handler. - lo_server = z2ui5_cl_http_handler=>factory( server ) + lo_server = z2ui5_cl_http_handler=>factory( server ). lo_server->main( ). ENDMETHOD.