requests/requests-oauthlib — pull request #16 by dergraf (2013-01-22 15:30:59+00:00)
Title: OAuth1 not working when using SIGNATURE_TYPE_BODY

If you use oauthlib.oauth1.SIGNATURE_TYPE_BODY as your OAuth signature type the plugin doesn't update the req.body value it instead keeps the 'new' body inside req.data which is then never merged with the req.body and therefore the OAuth params are never transmitted.

Directly replacing the req.body with the result of the sign request works here. requests.models.prepare_auth takes care of recalculating the 'Content-Length'-header.