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

Thin crashes with numeric headers #335

Closed
fabn opened this issue Mar 16, 2017 · 0 comments
Closed

Thin crashes with numeric headers #335

fabn opened this issue Mar 16, 2017 · 0 comments

Comments

@fabn
Copy link

fabn commented Mar 16, 2017

I have an around_action in my controller that write an header with a numeric value in this way

elapsed = Benchmark.realtime(&action)
headers['X-Report-Runtime'] = elapsed

This is causing an error in thin, at this line because obviously numeric values do not respond to each.

I don't know if it's unsupported by rack to add numeric values as header values but with other rack servers that code is working.

@ioquatix ioquatix closed this as completed Sep 7, 2020
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