This commit is contained in:
Robohash 2012-06-28 19:59:16 +00:00
parent 04edaded67
commit 88e1c0b8e3
2 changed files with 4 additions and 3 deletions

View File

@ -546,8 +546,9 @@ src="//static1.robohash.org/static/img/indented_star.png" width="27" height="25"
Put either the email, or the hashed version, in your image where the string normally goes -<br><br>
For example: http://robohash.org/colin@robohash.org?gravatar=yes<br> or http://robohash.org/620050a4db5104bae758cd75171d64ca?gravatar=hashed
</p><p>
<p>Both traditional and new Stealthy (https) robots are available.</p>
<p>Both traditional and new Stealthy (https) robots are available.</p>
<p>Finally, the <a href="http://github.com/e1ven/Robohash">Blueprints are available</a> to build your own robotic
factory.</p>
</p>
</div><!-- end of content section -->

View File

@ -278,7 +278,7 @@ class ImgHandler(tornado.web.RequestHandler):
string = urllib.quote(string)
default = "404"
# construct the url
gravatar_url = self.request.protocol + "://www.gravatar.com/avatar/" + string + "?"
gravatar_url = "http://www.gravatar.com/avatar/" + string + "?"
gravatar_url += urllib.urlencode({'default':default, 'size':str(sizey)})
try:
f = urllib2.urlopen(urllib2.Request(gravatar_url))