mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fix #2720: serve default wizard over https
This commit is contained in:
parent
4160058505
commit
2cbbeaaddf
1 changed files with 2 additions and 2 deletions
|
@ -686,8 +686,8 @@ UserHandler = class UserHandler extends Handler
|
||||||
|
|
||||||
buildGravatarURL: (user, size, fallback) ->
|
buildGravatarURL: (user, size, fallback) ->
|
||||||
emailHash = @buildEmailHash user
|
emailHash = @buildEmailHash user
|
||||||
fallback ?= 'http://codecombat.com/file/db/thang.type/52a00d55cf1818f2be00000b/portrait.png'
|
fallback ?= 'https://codecombat.com/file/db/thang.type/52a00d55cf1818f2be00000b/portrait.png'
|
||||||
fallback = "http://codecombat.com#{fallback}" unless /^http/.test fallback
|
fallback = "https://codecombat.com#{fallback}" unless /^http/.test fallback
|
||||||
"https://www.gravatar.com/avatar/#{emailHash}?s=#{size}&default=#{fallback}"
|
"https://www.gravatar.com/avatar/#{emailHash}?s=#{size}&default=#{fallback}"
|
||||||
|
|
||||||
buildEmailHash: (user) ->
|
buildEmailHash: (user) ->
|
||||||
|
|
Loading…
Reference in a new issue