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

.Body() only serialises to json objects and doesn't support other types such as binary files #52

Open
Ewan88 opened this issue Nov 12, 2020 · 0 comments

Comments

@Ewan88
Copy link

Ewan88 commented Nov 12, 2020

I require the ability to submit binary files as part of a request body for testing.

I can't use .File() because this converts the request to a multipart/form - which my server does not expect.

The current implementation of Body() in RA/src/SetupContext.cs line 159 uses JsonConvert.Deserialize() but I need a way to prevent it from converting everything to json and use the correct serializer for whatever I pass in.

@DayneD89 - I know you're working on this at the moment, could you possibly look into this?

Thanks.

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