Skip to content

Commit

Permalink
All gravatar requests now default to 404.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Feb 11, 2015
1 parent fa54198 commit d7f6b10
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*/
public class GravatarUtils {

private static final DefaultImage DEFAULT_GRAVATAR = DefaultImage.MYSTERY_MAN;
// by default tell gravatar to respond to non-existent images with a 404 - this means
// it's up to the caller to catch the 404 and provide a suitable default image
private static final DefaultImage DEFAULT_GRAVATAR = DefaultImage.STATUS_404;

public static enum DefaultImage {
MYSTERY_MAN,
Expand Down

0 comments on commit d7f6b10

Please sign in to comment.