Skip to content

static_file() throws away response headers #580

@bbradshaw

Description

@bbradshaw

Trying to figure out why this toy code wasn't working:

@app.route('/')
def get_basic_file():
        response.set_cookie('basic_cookie', 1)
    return static_file('index.html', 'path')

It seems the static_file() method never looks at the original response object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions