Skip to content
Browse files

Reduced number of urlfetch calls by a factor of two.

Turns out that making flickr API calls to http://flickr.com will issue a 302
redirect to http://www.flickr.com every time. A simple hack to flickr.py cuts
uncached response time in half.
  • Loading branch information...
1 parent 1bb0a3d commit 066b178fd4e477632d1ff98f116ea2f6f461e4ec @jmk committed May 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 flickr.py
View
2 flickr.py
@@ -31,7 +31,7 @@
import hashlib
import os
-HOST = 'http://flickr.com'
+HOST = 'http://www.flickr.com'
API = '/services/rest'
# set these here or using flickr.API_KEY in your application

0 comments on commit 066b178

Please sign in to comment.
Something went wrong with that request. Please try again.