Skip to content

Commit

Permalink
add https support with specified url
Browse files Browse the repository at this point in the history
  • Loading branch information
benkaiser committed Oct 9, 2016
1 parent a82a139 commit 3dfe879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 8
targetSdkVersion 21
versionCode 1
versionName "1.1"
versionName "1.2"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onClick(View v) {
// handle click
String host_string = host_ip.getText().toString();
// if they left off the protocol, add it
if (!host_string.startsWith("http://")) {
if (!host_string.startsWith("http://") && !host_string.startsWith("https://")) {
host_string = "http://".concat(host_string);
}

Expand Down

0 comments on commit 3dfe879

Please sign in to comment.