Skip to content

Commit

Permalink
Google is responding with a 302 status, change to 200 to avoid problems
Browse files Browse the repository at this point in the history
  • Loading branch information
heldersepu committed Jul 14, 2013
1 parent 2c9595b commit 5caf76f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gmapcatcher/openanything.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def fetch(source, etag=None, lastmodified=None, agent=USER_AGENT, post_data=None
result['url'] = f.url
result['status'] = 200
if hasattr(f, 'status'):
result['status'] = f.status
if f.status == 302:
result['status'] = 200
else:
result['status'] = f.status
f.close()
return result

Expand Down

0 comments on commit 5caf76f

Please sign in to comment.