Fix #2720: serve default wizard over https

This commit is contained in:
Nick Winter 2016-05-31 09:30:07 -07:00
parent 4160058505
commit 2cbbeaaddf

View file

@ -686,8 +686,8 @@ UserHandler = class UserHandler extends Handler
buildGravatarURL: (user, size, fallback) ->
emailHash = @buildEmailHash user
fallback ?= 'http://codecombat.com/file/db/thang.type/52a00d55cf1818f2be00000b/portrait.png'
fallback = "http://codecombat.com#{fallback}" unless /^http/.test fallback
fallback ?= 'https://codecombat.com/file/db/thang.type/52a00d55cf1818f2be00000b/portrait.png'
fallback = "https://codecombat.com#{fallback}" unless /^http/.test fallback
"https://www.gravatar.com/avatar/#{emailHash}?s=#{size}&default=#{fallback}"
buildEmailHash: (user) ->