Skip to content

Commit 1a11d30

Browse files
authored
cleanup handler (#20)
1 parent 19ee93f commit 1a11d30

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

test/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,9 @@
474474
}
475475
},
476476
renderer(oRm, oControl) {}
477-
});
478-
}); }
477+
}
478+
});
479+
});
479480
sap.ui.define("z2ui5/Timer" , [
480481
"sap/ui/core/Control"
481482
], (Control) => {

test/zcl_sicf.clas.abap

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,16 @@ CLASS zcl_sicf IMPLEMENTATION.
1010

1111
METHOD if_http_extension~handle_request.
1212

13-
DATA lv_requ_body TYPE string.
14-
DATA lv_method TYPE string.
15-
16-
lv_requ_body = server->request->get_cdata( ).
17-
lv_method = server->request->get_method( ).
13+
DATA lv_req TYPE string.
14+
lv_req = server->request->get_cdata( ).
1815

1916
DATA lv_resp TYPE string.
20-
CASE lv_method.
21-
WHEN 'GET'.
22-
lv_resp = z2ui5_cl_http_handler=>http_get( ).
23-
WHEN 'POST'.
24-
lv_resp = z2ui5_cl_http_handler=>http_post( lv_requ_body ).
25-
ENDCASE.
17+
lv_resp = z2ui5_cl_http_handler=>main( lv_req ).
2618

2719
server->response->set_cdata( lv_resp ).
20+
server->response->set_header_field( name = `cache-control` value = `no-cache` ).
2821
server->response->set_status( code = 200 reason = `success` ).
2922

3023
ENDMETHOD.
3124

32-
ENDCLASS.
25+
ENDCLASS.

0 commit comments

Comments
 (0)