0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fix gravatar request url.

Refs #4367
- 'http:' was accidentally left out when passing the gravatar
  URL into request, and request requires the full scheme to be present.
This commit is contained in:
Jason Williams 2014-11-16 04:33:33 +00:00
parent 2d213212e7
commit 15fe121490

View file

@ -849,7 +849,7 @@ User = ghostBookshelf.Model.extend({
resolve(userData);
}
request({url: gravatarUrl, timeout: 2000}, function (err, response) {
request({url: 'http:' + gravatarUrl, timeout: 2000}, function (err, response) {
if (err) {
// just resolve with no image url
resolve(userData);