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

Revert writeHeaders method and add preserveHeaderKeyCase option #1104

Merged
merged 2 commits into from
Dec 6, 2016

Conversation

pachirel
Copy link
Contributor

@pachirel pachirel commented Dec 6, 2016

My change (#1098) has side effect because of the header values of rawHeaders are not always same with the values of headers. ( #1101, #1102, #1103) 🙇

This PR includes these changes to solve it:

  1. Overwrite only key, not value.
  2. Overwrite key if raw header key is available.
  3. Add preserveHeaderKeyCase option (default: false).

@jcrugzz I'd like to hear your thought. 🍣

I have to add specs before marge this.
Sorry for any inconvenience, and thanks to all.

@jcrugzz
Copy link
Contributor

jcrugzz commented Dec 6, 2016

@pachirel ill push this out now, submit a follow up PR with any additional changes you wanted to make so we can get this fixed.

@jcrugzz jcrugzz merged commit 961f457 into http-party:master Dec 6, 2016
@pachirel
Copy link
Contributor Author

pachirel commented Dec 6, 2016 via email

@pachirel pachirel changed the title [WIP] Revert default behavior of writeHeaders method Revert writeHeaders method and add preserveHeaderKeyCase option Dec 7, 2016
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

Successfully merging this pull request may close these issues.

2 participants