Skip to content

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

Open
@Xenoage

Description

@Xenoage

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions