Skip to content

Request redirections are broken because body is None #112

@jkrebs

Description

@jkrebs

When httplib2 encounters a HTTP redirect, the subsequent request is performed with a 'None' request body.

However, oauth2.Request.sign_request() expects body to always be a string due to the sha(self.body). At the moment this raises a 'TypeError: sha1() argument 1 must be string or read-only buffer, not None'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions