Skip to content

Assuming files are always UTF-8 encoded text #12

@apdevelop

Description

@apdevelop

Reading file contents in getFile() function of OwinCompression module implemented as StreamReader.ReadToEndAsync() + System.Text.Encoding.UTF8.GetBytes:
https://github.com/Thorium/Owin.Compression/blob/master/src/Owin.Compression/CompressionModule.fs#L156

How it will proceed with arbitrary encoded text files or binary files (for example, images and fonts) - the file contents will be corrupted in response. This applies when using .MapCompressionModule(...) and respectively ResponseMode.File.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions