diff --git a/lib/adp-downloader/http_client.rb b/lib/adp-downloader/http_client.rb
index <HASH>..<HASH> 100644
--- a/lib/adp-downloader/http_client.rb
+++ b/lib/adp-downloader/http_client.rb
@@ -12,7 +12,7 @@ module ADPDownloader
       res = agent.get(url)
       _raise_on_error(res)
       contents = res.body
-      contents.body.to_s.empty? ? {} : JSON.parse(contents)
+      contents.to_s.empty? ? {} : JSON.parse(contents)
     end
 
     def post(url, data)
@@ -42,7 +42,8 @@ module ADPDownloader
 
     def _raise_on_error(res)
       uri = res.uri.to_s.downcase
-      if not uri.start_with? TARGET_URL or uri.include? "login"
+      #if not uri.start_with? TARGET_URL or uri.include? "login"
+      if uri.include? "login"
         #raise "Unable to authenticate: make sure your username and password are correct"
         raise "Unable to authenticate: make sure the file cookie.txt is up to date"
       end
Fix bug when displaying auth error messages

In order to properly display error messages, the original method had to
change a bit, otherwise, the app always displays the error message, even
when the request succeeded.