Skip to content

downloading from send_file unpacks gzipped files #2149

@filak

Description

@filak

The gzipped files returned with

return send_file( fpath, as_attachment=True ) 

are being downloaded unpacked. The file are saved as *.gz but its content is plaintext.

This does not happen with
Flask==1.1.2
werkzeug==1.0.1

Environment:

  • Python version: 3.7.1
  • Flask version: 2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions