Skip to content

Adding simple if not to yield exception. #337

@Roycohen

Description

@Roycohen

local ok, connection = pcall(str_lower, res_headers["Connection"])

There are many cases where the header may be nil and it's yielding with un-needed exception.
Should add a simple if before accessing the header.

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