You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ksort in the __toString function mutates HeaderBag's headers array. ResponseHeaderBag's allPreserveCase method relies on the order of the header array since it keeps a parallel array with header names.
While the mutating ksort was the first part of the cause, it looks like the real problem is from this commit 63a228c a few months ago which caused the sendHeaders to try and preserve case by relying on the parallel arrays.
The ksort in the __toString function mutates HeaderBag's headers array. ResponseHeaderBag's allPreserveCase method relies on the order of the header array since it keeps a parallel array with header names.
if toString has been calls results in something like:
Since sendHeaders uses allPreserveCase, the headers have values and names mixed up.
The text was updated successfully, but these errors were encountered: