swordapp/sword2ruby — pull request #2 by tdak (2013-10-09 15:37:10+00:00)
Title: Moved content type validation for service after the response code check

When I connect to Dspace with an invalid username and password it returns 403 forbidden. The AtomService file tried to validate content type before it knew if the user logged in successfully or not. So I just moved the validate_content_type after the if statement checking if the connection returned 200.

I kept on getting Atom::WrongMimetype errors, so that seemed a bit weird. Hope you can merge that into the Gem as well.