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

.NET Standard: HTTP status line written after file content #26

Open
Xenoage opened this issue Dec 13, 2018 · 0 comments
Open

.NET Standard: HTTP status line written after file content #26

Xenoage opened this issue Dec 13, 2018 · 0 comments

Comments

@Xenoage
Copy link

Xenoage commented Dec 13, 2018

Hopefully this library will officially be ported to .NET Standard soon. jcaillon already did it, but there is a problem with the HttpResponse class, so maybe you can fix that early:

The FileHandler does not work in .NET Core, it returns the file content before the HTTP 1.1 ... status line and headers.

It can be fixed by inserting writer.Flush(); before await ContentStream.CopyToAsync(writer.BaseStream).ConfigureAwait(false); in HttpResponse.WriteBody.

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