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

Need to POST simple string data #147

Open
kavics opened this issue Jul 2, 2024 · 0 comments
Open

Need to POST simple string data #147

kavics opened this issue Jul 2, 2024 · 0 comments
Labels

Comments

@kavics
Copy link
Contributor

kavics commented Jul 2, 2024

The ODataRequest's PostData accepts any object that will be JSON-serialized to a string. For example: { "Name": "value" }. In some cases, it needs to post a simple string but the post-data will also be JSON-serialized:
Initial data: models=[{"a"=1,"b"=2}] but it sent as "models=[{\"a\"=1,\"b\"=2}]"
Expectation: Do not serialize the OdataRequest.PostData if its value is a string.

@kavics kavics added the client label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant