Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

More specific Accept values overrides less specific #118

Closed
singpolyma opened this Issue · 2 comments

2 participants

@singpolyma

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html says:

     Accept: text/*, text/html, text/html;level=1, */*

have the following precedence:

     1) text/html;level=1
     2) text/html
     3) text/*
     4) */*

But:

parseHttpAccept "text/*, text/html, text/html;level=1, */*"
["text/*","text/html","text/html","*/*"]
@snoyberg
Owner

Would you be able to send a pull request to address this?

@singpolyma

Sure, I'm a bit busy this weekend (Thanksgiving), but I'll try to work something up in the near future :)

@snoyberg snoyberg closed this in ecd53e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.