#110 ✓invalid

Thin / Mongrel / headers "Accept-Ranges"

Reported by expensivelesbian | August 30th, 2009 @ 04:53 PM | in Future


Thin doesn't appear to support the "Accept-Ranges" header. Mozilla, and maybe others, use this to determine the duration of an or object. Are there any plans to add this header to Thin?


Comments and changes to this ticket

  • macournoyer

    macournoyer August 30th, 2009 @ 08:54 PM

    • State changed from “new” to “invalid”

    No need to add anything to THin for this:

    app = proc do |env|
      # Response body has to respond to each and yield strings
      # See Rack specs for more info: http://rack.rubyforge.org/doc/files/SPEC.html
      body = ['hi!']
        200,                                        # Status code
        { 'Content-Type' => 'text/html', 'Accept-Ranges' => '10' }, # Reponse headers
        body                                        # Body of the response
    run app

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket


Referenced by