#6074 fedorapeople.org: serve gzipped text files as text/plain
Closed: Fixed Opened by tkrizek.

Currently, it's not possible to view gzipped log file directly in a browser on fedorapeople.org. The file has to be downloaded and opened in an external application.

Example from fedorapeople.org: https://fedorapeople.org/groups/freeipa/tmp/logs/example.log.gz

Working example that can be opened in a browser: https://launchpadlibrarian.net/135423671/ubuntuone-control-panel_4.1.91-0ubuntu1_4.2.0-0ubuntu1.diff.gz

I think setting the correct mime type for certain files should do it:

Content-Type: text/plain
Content-Encoding: gzip

Ideally, this should be the case for all gzipped text files, but if there's no easy way to do it, at least *.log.gz could be served this way.


ok. I think I have this fixed now.

Can you test and confirm and close?

:hatching_chick:

I'm going to assume this is working... please re-open or file a new issue if you hit anything else.

:bike:

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Sorry, I didn't notice the notification from pagure.

I can confirm it works properly for *.gz files. Thanks!

Metadata