Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 21, 2011
  1. @kou

    parse Accept-Encoding header loosely.

    kou authored
    After this commit, Rack::Request#accept_encoding doesn't
    raise an exception for invalid Accept-Encoding value.
    
    If Rack::Request#accept_encoding may raise an exception,
    Rack::Middleware::Deflater may also raise an exception.
    Because Rack::Middleware::Deflater dosn't rescue an
    exception from Rack::Request#accept_encoding.
    
    On the exception case, it seems that either returning "400
    Bad Request" or just ignoring invalid value is better
    behavior. This patch uses the latter solution.
Something went wrong with that request. Please try again.