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

Headers #36

Merged
merged 3 commits into from
May 22, 2012
Merged

Headers #36

merged 3 commits into from
May 22, 2012

Conversation

oestrich
Copy link
Contributor

This lets you set headers without having to let the client.

Goes along with the DSL redesign, #28

new_key = "HTTP_#{new_key}" unless new_key == "CONTENT_TYPE"
hsh[new_key] = v
hsh
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make a method in headers.rb that does this? This functionality is the mirror of env_to_headers, i.e., headers_to_env.

@samwgoldman
Copy link
Contributor

Except for the one comment, this is good to go.

samwgoldman added a commit that referenced this pull request May 22, 2012
@samwgoldman samwgoldman merged commit 1e2e7d5 into master May 22, 2012
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