Install ruby-rack-accept by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-rack-accept
Description:
suite of tools for interpreting HTTP Accept family for Ruby/Rack
Rack-Accept is a suite of tools for Ruby/Rack applications that eases the complexity of building and interpreting the Accept*family of HTTP request headers. It has full support for the Accept, Accept-Charset, Accept-Encoding, and Accept-Language HTTP request headers. . It implements the Rack middleware interface and may be used with any Rack-based application.
Homepage: http://mjijackson.github.com/rack-accept
Version: 0.4.5-3
Section: universe/ruby