HTTP commits broken under Unicorn in 2.8.2
Created by: kelas
@request.body returns an instance of Unicorn::TeeInput under Unicorn
Proposed patch to config/initializers/grack_auth.rb:
def current_ref
if @env["HTTP_CONTENT_ENCODING"] =~ /gzip/
input = Zlib::GzipReader.new(@request.body.read).string
else
input = @request.body.read
end
@request.body.rewind
Instead of:
def current_ref
if @env["HTTP_CONTENT_ENCODING"] =~ /gzip/
input = Zlib::GzipReader.new(@request.body.string).string
else
input = @request.body.string
end