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

Wrong media type for built-in byte[]/stream codec #27

Closed
JornWildt opened this issue May 12, 2015 · 0 comments
Closed

Wrong media type for built-in byte[]/stream codec #27

JornWildt opened this issue May 12, 2015 · 0 comments

Comments

@JornWildt
Copy link
Owner

When posting a stream like this:

using (Stream sData = File.OpenRead(filePath))
using (var response = session.Bind(url).Post(sData))
{
}

It sends / as the media type. Thats not a valid type.

But what would be the right? In my exact case it would be "zip" - but the default should probably be "binary".

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