tenderlove/mechanize — pull request #222 by dsisnero (2012-04-24 17:27:49+00:00)
Title: make sure @authstore key is a URI

When checking for credentials, this agent class sends a URI on line 682,
but the @auth_store adds it as as whatever you give it, usually a string.

The @authstore will have the key as a string unless in the Mechanize instance you do:

agent.add_auth( URI.parse(uri),user,pwd))

This change makes sure that the @auth_store key is a URI just like line 682 is expecting