Skip to content

File corrupted while using gzip encode method #8

@petr-g

Description

@petr-g

Hi there, I have a trouble with gzip encoding.

When I set

'encodeMethod' => '',

everything works just fine.

But when I set

'encodeMethod' => NULL,    // automatic encoding

the compressed file is corrupted.

This behaviour is not only my local dev-server, but also on the production server, so I beleive this is not happening thanks to my dev-server settings.

After downloading the file via the browser while encoding is set to NULL, the incomming file is corrupted at the end and it final size (after downloading and saving on the disc) is lower then the file without encoding.

Here are the headers:

encoded:
headers not ok

not encoded:
headers ok

The older PHP version is not the reason. I have 5.6.14 on my production server and the issue is the same there.

I also wanted to attach both CSS versions as an example, but GitHub has not managed to upload my TXT files with uknown reason (it says "Something went really wrong, and we can’t process that file."). Even the MS Word version has not helped.

My Kohana version is 3.3.3.1.

Is there any chance you could help me with this issue?

Thanks, Pert

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