Skip to content

Content-Type header not recognized in vsc.utils.rest_oauth #62

@backelj

Description

@backelj

Hi,

I was checking the function request_access_token from vsc.utils.rest_oauth, but it fails to work because of the line:

request.add_header('Content-Type', 'application/json')

It looks like this has to be written without the hyphen:

request.add_header('ContentType', 'application/json')

Can someone confirm this?

-- Thanks,

Franky

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions