We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When this plugin is used with unicorn and ruby 1.9. It breaks with following error
Read error: #<NoMethodError: undefined method `each' for #<String:0x00000100d88118>> /Volumes/DATA/Bhavin/.rvm/gems/ruby-1.9.2-p0/gems/unicorn-3.0.0/lib/unicorn/http_response.rb:45:in `http_response_write'
While debugging, line no. 59 rack/offline.rb is breaking the code.
[200, {"Content-Type" => "text/cache-manifest"}, body.join("\n")]
line no. 45 in unicorn/http_response.rb looks like
body.each { |chunk| socket.write(chunk) }
It would have worked in ruby 1.8. But in 1.9 since String#each is deprecated, the code breaks.
Not sure what is the best solution. Should it be passed as an array? In that case newline will not be send to the browser.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When this plugin is used with unicorn and ruby 1.9. It breaks with following error
While debugging, line no. 59 rack/offline.rb is breaking the code.
line no. 45 in unicorn/http_response.rb looks like
It would have worked in ruby 1.8. But in 1.9 since String#each is deprecated, the code breaks.
Not sure what is the best solution. Should it be passed as an array? In that case newline will not be send to the browser.
The text was updated successfully, but these errors were encountered: