Sitelet https://github.com/joestump/python-oauth2/issues/145
Skip to content

Unable to change default headers #145

Description

@deeshank

Hi,

One of the REST URL's response is json [Content-Type:application/json] but when i tried to overrride the default headers it doesn't reflect in the request headers -

resp, content = client.request(request_token_url, "GET",headers={'Content-Type':'application/json'})

headers={'content-type':'application/xml','Accept':'/','Connection':'keep-alive'}
cl.request(url,headers=headers)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions