Permalink
Browse files

Go through redirect to check if user is valid.

  • Loading branch information...
lunks committed Nov 19, 2013
1 parent 40f4942 commit 73f9cfa9b097e1537d1c8a7fcd693a1233289b80
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/fotolog.rb
View
@@ -12,7 +12,7 @@ def initialize user=nil
end
def valid?
- @client.head(archive_url).status == 200
+ @client.get(archive_url, follow_redirect: true).status == 200
end
def year_archive_url year

0 comments on commit 73f9cfa

Please sign in to comment.