Skip to content

Response builder broke header value #41

@snapshotpl

Description

@snapshotpl
Q A
Bug? yes
New Feature? no
Version 1.2.0

Actual Behavior

Curl client (and maybe more) using Http\Message\Builder\ResponseBuilder. When client adds Content-Type: application/hal+json header using addHeader method, created response contains Content-Type: application/hal json

Expected Behavior

Created response should contains valid header value as it's in raw response.

Steps to Reproduce

Send request to get response with header contains + eg. Content-Type: application/hal+json

Possible Solutions

Remove / fix decoding in https://github.com/php-http/message/blob/master/src/Builder/ResponseBuilder.php#L139

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