Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST didn't work #1

Closed
shufps opened this issue Dec 6, 2021 · 2 comments
Closed

POST didn't work #1

shufps opened this issue Dec 6, 2021 · 2 comments

Comments

@shufps
Copy link
Contributor

shufps commented Dec 6, 2021

I think, this is wrong:

method_info['uri'].format(**kwargs)

POST didn't work because **kwargs was not passed to the requests function. Therefore, it was not possible to use the data parameter.

            response = self._session.request(
                method_info['method'],
                #method_info['uri'].format(**kwargs)       <- this didn't work for POST
                method_info['uri'],
                **kwargs
            )
@shufps
Copy link
Contributor Author

shufps commented Dec 6, 2021

Closing the issue because of the PR

@shufps shufps closed this as completed Dec 6, 2021
@coffeepenbit
Copy link
Owner

Thanks, I merged it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants