#110 ✓invalid
expensivelesbian

Thin / Mongrel / headers "Accept-Ranges"

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

Hi

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?

jp

Comments and changes to this ticket

  • expensivelesbian

    expensivelesbian August 30th, 2009 @ 04:55 PM

    it's supposed to say, "...duration of an <audio> or <video> object..."

  • 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
      ]
    end
    
    run app
    
  • NaBone

    NaBone December 19th, 2020 @ 01:24 AM

    Tickets and all projects of the lighthouse are engaged for the suspects. All the shows of the light and visits of the proofreading are mutually approved for the team. The side corrupt force is entailed for the grouped reading for the team.

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

Tags

Referenced by

Pages