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

Improve getBodyReaderAndContentLength error #189

Open
dmytrohridin opened this issue Apr 11, 2023 · 0 comments
Open

Improve getBodyReaderAndContentLength error #189

dmytrohridin opened this issue Apr 11, 2023 · 0 comments

Comments

@dmytrohridin
Copy link

Right now function can return an error with very generic message. In case when body passes with wrong type.
Can error contains supported types of body that it expected in message, or to make it backward compatible - return custom error with message that is currently returning but with additional field like []string SupportedTypes.
If it make sense - I can submit a PR

@dmytrohridin dmytrohridin changed the title Improve getBodyReaderAndContentLength error Improve getBodyReaderAndContentLength error Apr 11, 2023
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

1 participant