@@ -500,20 +500,20 @@ public void RestExecute() {
500
500
httpClient .addHeader ( "Content-Type" , contentType );
501
501
}
502
502
else {
503
- if (this . httpMethod == "POST" || this . httpMethod == "PUT" ) {
503
+ if (httpMethod == "POST" || httpMethod == "PUT" ) {
504
504
bodyString = "{}" ;
505
505
httpClient .addString (bodyString );
506
506
httpClient .addHeader ("Content-Type" , contentType );
507
507
}
508
508
}
509
- if (this . location .getAuthenticationMethod () == 4 && this . location .getAccessToken () != null && ! this . location .getAccessToken ().trim ().isEmpty ()) {
510
- httpClient .addHeader ("Authorization" , this . location .getAccessToken ());
509
+ if (location .getAuthenticationMethod () == 4 && location .getAccessToken () != null && ! location .getAccessToken ().trim ().isEmpty ()) {
510
+ httpClient .addHeader ("Authorization" , location .getAccessToken ());
511
511
}
512
- String serviceuri = ((this . location .getSecure () > 0 ) ? "https" : "http" ) + "://" + this . location .getHost ();
513
- serviceuri += (this . location .getPort () != 80 ) ? ":" + Integer .toString (this . location .getPort ()): "" ;
514
- serviceuri += "/" + this . location .getBaseURL () + "/" + this . location .getResourceName ();
512
+ String serviceuri = ((location .getSecure () > 0 ) ? "https" : "http" ) + "://" + location .getHost ();
513
+ serviceuri += (location .getPort () != 80 ) ? ":" + Integer .toString (location .getPort ()): "" ;
514
+ serviceuri += "/" + location .getBaseURL () + "/" + location .getResourceName ();
515
515
serviceuri += queryString ;
516
- httpClient .execute ( this . httpMethod , serviceuri );
516
+ httpClient .execute ( httpMethod , serviceuri );
517
517
518
518
if (httpClient .getStatusCode () >= 300 || httpClient .getErrCode () > 0 ) {
519
519
errorCode = (httpClient .getErrCode () == 0 )? 1 : httpClient .getErrCode ();
0 commit comments