Class: Mongrel::HttpResponse
- Inherits:
-
Object
- Object
- Mongrel::HttpResponse
- Defined in:
- lib/squeeze_box.rb
Instance Method Summary collapse
Instance Method Details
#squeeze_box_send_status ⇒ Object
326 327 328 329 330 331 332 333 |
# File 'lib/squeeze_box.rb', line 326 def squeeze_box_send_status if not @status_sent # Do not write Content-Length to header (Bad for streaming) #@header['Content-Length'] = content_length unless @status == 304 write(Const::STATUS_FORMAT % [@status, HTTP_STATUS_CODES[@status]]) @status_sent = true end end |