Skip to content

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