Skip to content

Default params to http client #192

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

Closed
Nihisil opened this issue Mar 4, 2021 · 4 comments · Fixed by #194
Closed

Default params to http client #192

Nihisil opened this issue Mar 4, 2021 · 4 comments · Fixed by #194
Assignees
Labels
bug Something isn't working next release

Comments

@Nihisil
Copy link

Nihisil commented Mar 4, 2021

Is there a way to set up default params for all requests? I didn't find it.

Right now I need to set {secure: true} to each request manually, which is can be improved with default params.

@js2me
Copy link
Member

js2me commented Mar 4, 2021

Hello @Nihisil !
Which kind of http client are you using ?

@Nihisil
Copy link
Author

Nihisil commented Mar 4, 2021

axios

@js2me js2me self-assigned this Mar 4, 2021
@js2me js2me added bug Something isn't working next release labels Mar 4, 2021
js2me added a commit that referenced this issue Mar 4, 2021
@js2me js2me mentioned this issue Mar 4, 2021
js2me added a commit that referenced this issue Mar 4, 2021
@js2me js2me linked a pull request Mar 4, 2021 that will close this issue
@js2me js2me closed this as completed in #194 Mar 4, 2021
js2me added a commit that referenced this issue Mar 4, 2021
* fix: missing generateUnionEnums in .d.ts (#193)

* fix: problem with missing default params for axios http client (issue #192, thanks @Nihisil); docs: update CHANGELOG

* bump: up version to 6.2.1

Co-authored-by: Artem Shabanov <[email protected]>
@js2me
Copy link
Member

js2me commented Mar 4, 2021

@Nihisil thanks for your bug reports!
This bug should be fixed in 6.2.1 release.
Please reopen issue if you still have the same problem.

@Nihisil
Copy link
Author

Nihisil commented Mar 4, 2021

Thank you for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants