Module: Sinatra

Defined in:
lib/sinatra/respond_to.rb,
lib/sinatra/respond_to/version.rb

Overview

Accept header parsing was looked at but deemed too much of an irregularity to deal with. Problems with the header differences from IE, Firefox, Safari, and every other UA causes problems with the expected output. The general expected behavior would be serve html when no extension provided, but most UAs say they will accept application/xml with out a quality indicator, meaning you’d get the xml block served insead. Just plain retarded, use the extension and you’ll never be suprised.

Defined Under Namespace

Modules: RespondTo