Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Accept string payload in the Request constructor (#697)
- This is a follow-up to #668 (comment). - Let's accept `payload` as both str and bytes in the `Request.from_url` constructor. - The field `Request.payload` has a validator that accepts both. With this change, we are consistent in the `from_url` constructor as well. - We do a similar thing for the `Request.headers` as well.
- Loading branch information