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

Content-MD5 not recognized correctly as header field #178

Open
msulland opened this issue Feb 4, 2014 · 2 comments
Open

Content-MD5 not recognized correctly as header field #178

msulland opened this issue Feb 4, 2014 · 2 comments

Comments

@msulland
Copy link

msulland commented Feb 4, 2014

Hi,

Looks like Response has problems with recognizing the header field Content-MD5. Possible fix is to replace the regexp /([A-Z][a-z])/ with /(([A-Z][a-z])|([A-Z]+))/' in getHeaderName()

@peej
Copy link
Owner

peej commented Feb 5, 2014

Hi, I've been unable to recreate this issue. Can you provide a test case or more info around what's causing the problem?

@msulland
Copy link
Author

Hi,

$response = new Tonic\Response($this->request);
$response->contentMD5 = "md5";

When used like this "contentMD5" is not translated into the correct "Content-MD5" . Using contentMd5 results in "Content-Md5"

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