@@ -31,7 +31,7 @@ public class GXRestAPIClient {
31
31
32
32
private String contentType = "application/json; charset=utf-8" ;
33
33
static final String CONTENT_TYPE_LABEL = "Content-Type" ;
34
- static final String AUTHORIZTION_LABEL = "Authorization" ;
34
+ static final String AUTHORIZATION_LABEL = "Authorization" ;
35
35
36
36
private JSONObject jsonResponse ;
37
37
private HashMap <String , String > queryVars = new HashMap <String , String >();
@@ -551,9 +551,8 @@ else if (jsonResponse.length() == 1 && jsonResponse.has("")) {
551
551
}
552
552
553
553
public void addUploadFile (String filePath , String fileName ) {
554
- httpClient .addFile (filePath , fileName );
555
- String mimeType = SpecificImplementation .Application .getContentType (filePath );
556
- contentType = mimeType ;
554
+ httpClient .addFile (filePath , fileName );
555
+ contentType = SpecificImplementation .Application .getContentType (filePath );;
557
556
}
558
557
559
558
public void RestExecute () {
@@ -588,7 +587,7 @@ public void RestExecute() {
588
587
}
589
588
}
590
589
if (location .getAuthenticationMethod () == 4 && location .getAccessToken () != null && ! location .getAccessToken ().trim ().isEmpty ()) {
591
- httpClient .addHeader (AUTHORIZTION_LABEL , location .getAccessToken ());
590
+ httpClient .addHeader (AUTHORIZATION_LABEL , location .getAccessToken ());
592
591
}
593
592
if (headerVars .size () > 0 ) {
594
593
for ( Map .Entry <String , String > entry : headerVars .entrySet ()) {
0 commit comments