Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipartStream compares part headers case-sensitively #17

Closed
pelepelin opened this issue Jun 3, 2015 · 1 comment
Closed

MultipartStream compares part headers case-sensitively #17

pelepelin opened this issue Jun 3, 2015 · 1 comment

Comments

@pelepelin
Copy link

At this line https://github.com/guzzle/psr7/blob/master/src/MultipartStream.php#L145 MultipartStream::getHeader() compares part header name case-sensitively, for this reason option like
'multipart' => [..., 'headers' => [ 'Content-Type' => $customContentType ] ]
is ignored

@mtdowling
Copy link
Member

Whoops. I'm pretty sure that used to work case insensitively. Looks like an strcasecmp got lost along the way.

On Jun 3, 2015, at 9:53 AM, Konstantin Pelepelin notifications@github.com wrote:

At this line https://github.com/guzzle/psr7/blob/master/src/MultipartStream.php#L145 MultipartStream::getHeader() compares part header name case-sensitively, for this reason option like
'multipart' => [..., 'headers' => [ 'Content-Type' => $customContentType ] ]
is ignored


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants