mjackson / rack-accept

HTTP Accept* for Ruby/Rack
http://mjackson.github.com/rack-accept
47 stars 16 forks source link

Accept header parsing is broken #19

Closed ioquatix closed 1 year ago

ioquatix commented 8 years ago

Parsing the following header gives incorrect output:

Accept: foo/bar;q=1;p="A,B"

But this is valid as per the RFC.

Therefore your assertion "Strict adherence to RFC 2616, specifically section 14" is incorrect and possibly misleading. This may even be a security issue in certain circumstances.