Fixing error return to be consistent with tuple return at the end of the method.
Making sure we check for str/unicode.
remove duplicate comment

This is already mentioned at line 357...
Merge pull request #1508 from dieterv/master

remove duplicate comment
Raising ValueError's when we're passed inconsistent POST data and files dict.
Fixing tests to verify thrown ValueError's.
Skip cookie extraction if necessary

If _original_response is never set/is None, then don't try to extract cookies
from the response.
Merge pull request #1535 from sigmavirus24/ignore_original_response_if_none

Skip cookie extraction if necessary
Remove superfluous double dot
Merge pull request #1538 from enkore/patch-1

Remove superfluous double dot
Update advanced.rst
Merge pull request #1540 from libbkmz/master

Event hooks update
Added link to StackOverflow questions related to python-requests. This should be the default support way for the library, as clearly most questions are supposed to be programming related.

Signed-off-by: Sorin Sbarnea <sorin.sbarnea@citrix.com>
Merge pull request #1556 from ssbarnea/master

Added link to StackOverflow questions related to python-requests. This s...
Add link to Contributor Friendly tag

Add note that I'm willing to help anyone who is looking to submit a pull request
Merge pull request #1566 from sigmavirus24/update_readme

Add link to Contributor Friendly tag in README
Improved content encoding detection.

get_encodings_from_content() can now detect HTML in-document content
encoding declarations in the following formats:

 - HTML5
 - HTML4
 - XHTML 1.x served with text/html MIME type
 - XHTML 1.x served as XML

Ref: http://www.w3.org/International/questions/qa-html-encoding-declarations
Merge pull request #1575 from jparise/content-encoding

Improved content encoding detection.
Adding myself to the list of contributors.
Merge pull request #1578 from jparise/jparise-authors

Adding myself to the list of contributors.