Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laminas/HTTP/Response add extra space in header value #99

Open
Labels
BugSomething isn't working
@HeenaBansal20

Description

Bug Report

Q A
Version(s) All

Summary

HTTP/Response::getHeaders() returns header like key:<space>value even when the header sent by application is key:value .

Current behavior

sendResponse(method, requestTarget, resOrStream, 200, JSON.stringify(incomingHeaders2, null, 2), {
 'Content-Type': 'application/json',
 'X-Response-Header-Downstream-To-App': 'Value 3',
 });
}

However when reading headers from laminas/API/response::getHeaders() , I received the headers like:

'Content-Type': 'application/json',
'X-Response-Header-To-App': 'Value 3'

How to reproduce

Any node js application which sends header in above format and laminas application received the requests and print headers.

Expected behavior

headers should propagated as it is what framework received.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /