Skip to content

Commit

Permalink
ssl: Fix Mixed-Contents warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Dec 9, 2016
1 parent 21e7d5b commit c56c5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/GravatarUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

public class GravatarUtil {

public static final String DEFAULT_GRAVATAR_URL = "http://ko.gravatar.com/userimage/53495145/0eaeeb47c620542ad089f17377298af6.png";
public static final String DEFAULT_GRAVATAR_URL = "https://ko.gravatar.com/userimage/53495145/0eaeeb47c620542ad089f17377298af6.png";
public static final int DEFAULT_SIZE = 80;

public static String getAvatar(String email) {
Expand All @@ -40,7 +40,7 @@ public static String getAvatar(String email, int size) {

public static String getAvatar(String email, int size, String defaultImageUrl) {
try {
String url = "http://www.gravatar.com/avatar/" + MD5Util.md5Hex(email) + "?s=" + size;
String url = "https://www.gravatar.com/avatar/" + MD5Util.md5Hex(email) + "?s=" + size;
if(StringUtils.isNotEmpty(defaultImageUrl)) {
url += "&d=" + URLEncoder.encode(defaultImageUrl, "UTF-8");
}
Expand Down

0 comments on commit c56c5ee

Please sign in to comment.