Fix for #1362.
authorDave Shawley <daves@aweber.com>
Thu, 16 May 2013 15:22:35 +0000 (11:22 -0400)
committerDave Shawley <daves@aweber.com>
Thu, 16 May 2013 17:12:34 +0000 (13:12 -0400)
commit6e76ab7188b2e5f6338b8b15d7d77b69f1627a7b
tree139e1c95f56545e72e2e2841a78295a0adc302f5
parenteacb91afb1c5dee8a6fcdadc9473463008e791c6
Fix for #1362.

`PreparedRequest.prepare_url` incorrectly applied IDNA encoding to the
URLs entire `netloc`.  It should only be encoding the hostname portion
of the URL.  IDNA encoding was limiting the user info, host, and port
segments to be a maximum of 63 characters which causes problems for
all by the most trivial user + password combinations.

- Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with
  `urllib3` equivalent.
- Modified IDNA encoding section so that it only encodes the host
  portion of the URL.
AUTHORS.rst
requests/models.py
test_requests.py