lib/lolp/connection.rb in lolp-0.8.1 vs lib/lolp/connection.rb in lolp-0.8.2
- old
+ new
@@ -27,10 +27,10 @@
def last_response
@last_response if defined? @last_response
end
def auto_loginable?(url)
- !authenticated? && url !~ /\/authenticate/ && @username && @password
+ url !~ /\/authenticate/ && @username && @password
end
def request(method, url = nil, data = nil, headers = nil, &block)
login if auto_loginable?(url)