Skip to content

can't print the response header Set-Cookie in log #845

Closed
@tjliupeng

Description

@tjliupeng

Hi,

I try to print the response header Set-Cookie to log by:

header_filter_by_lua_block {
ngx.log(ngx.WARN, "Set-Cookie %s", ngx.resp.get_headers()['Set-Cookie'] or "None")
}

But I get nothing in access.log or error.log.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions