Skip to content

Commit

Permalink
Merge pull request #16 from WURFL/develop
Browse files Browse the repository at this point in the history
HTTPS used as default connection scheme.
  • Loading branch information
andreacastello authored Nov 12, 2019
2 parents 45ecc83 + 14728ba commit fe4a7a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.scientiamobile.wurflcloud</groupId>
<artifactId>client-java</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
<packaging>jar</packaging>

<name>wurfl-cloud-client</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ private URLConnection setupUrlConnection(String request) throws IOException {
logger.debug("Setting read timeout: " + config.readTimeout + " mSec");
connection.setReadTimeout(config.readTimeout);

if (Constants.API_TYPE.equals(Constants.API_HTTP) && connection instanceof HttpURLConnection) {
if (Constants.API_TYPE.equals(Constants.API_HTTPS) && connection instanceof HttpURLConnection) {
logger.info("Explicitly setting connection method to GET");
((HttpURLConnection)connection).setRequestMethod("GET");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public interface Constants {
/**
* The version of this client
*/
String CLIENT_VERSION = "1.0.9";
String CLIENT_VERSION = "1.0.10";

/**
* Accepted encoding enum.
Expand Down Expand Up @@ -58,7 +58,7 @@ private Encoding(String val) {
/**
* The WURFL Cloud Service API type
*/
String API_HTTP = "http";
String API_HTTPS = "https";

/**
* Request path prefix.
Expand Down Expand Up @@ -89,10 +89,10 @@ private Encoding(String val) {
int DEFAULT_REPORT_INTERVAL = 60;

/**
* The WURFL Cloud API Type to be used. Currently, only WurflCloudClientConfig::API_HTTP is supported.
* The WURFL Cloud API Type to be used. Currently, only WurflCloudClientConfig::API_HTTPS is supported.
*/

String API_TYPE = API_HTTP;
String API_TYPE = API_HTTPS;

/**
* Cookie name, for cookie cache use.
Expand Down

0 comments on commit fe4a7a0

Please sign in to comment.