Skip to content

Issue handling responses with repeated header types #2

@nicmendoza

Description

@nicmendoza

The page I was hitting was returning headers with duplicate Set-Cookie calls (which I needed for the functionality I was after). I was able to get it to work by forcing multiple headers of the same type (adding the second argument, "false" to the header function invocation:

if ( !preg_match( '/^(Transfer-Encoding):/', $response_header ) ) {
header( $response_header , false);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions