The rack spec support's read instead of string, which is causing errors with this gem when deploying with application servers like Phusion Passenger and NGINX.
While Thin uses string just fine (e.g localhost development), deploying with NGINX is giving me this error: NoMethodError (undefined method 'string' for #<Unicorn::TeeInput traced back to this line.
The attached commits check if string is available and default to read if it's not.
Hello,
The rack spec support's read instead of string, which is causing errors with this gem when deploying with application servers like Phusion Passenger and NGINX.
While Thin uses string just fine (e.g localhost development), deploying with NGINX is giving me this error:
NoMethodError (undefined method 'string' for #<Unicorn::TeeInput
traced back to this line.The attached commits check if
string
is available and default toread
if it's not.References: