Renamed prepareBody to uriEncodeBody

This commit is contained in:
Giuseppe Digilio
2019-04-19 18:54:02 +02:00
parent 86324c366f
commit ea3f3cb40a
4 changed files with 7 additions and 7 deletions

View File

@@ -161,7 +161,7 @@ export class RequestService {
/**
* Convert request Payload to a URL-encoded string
*
* e.g. prepareBody({param: value, param1: value1})
* e.g. uriEncodeBody({param: value, param1: value1})
* returns: param=value&param1=value1
*
* @param body
@@ -169,7 +169,7 @@ export class RequestService {
* @return string
* URL-encoded string
*/
public prepareBody(body: any) {
public uriEncodeBody(body: any) {
let queryParams = '';
if (isNotEmpty(body) && typeof body === 'object') {
Object.keys(body)