Skip to content
Browse files

Go through redirect to check if user is valid.

  • Loading branch information...
1 parent 40f4942 commit 73f9cfa9b097e1537d1c8a7fcd693a1233289b80 @lunks lunks committed Nov 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/fotolog.rb
View
2 app/fotolog.rb
@@ -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.
Something went wrong with that request. Please try again.