'Accept' header can have multiple values, code checks for a single value
mjordan opened this issue · 1 comments
mjordan commented
Currently, the get() router performs content negotiation by testing whether the 'Accept' request header is a string, but this header can legally contain multiple values. Fix is to get the values of 'Accept' as an array and check for the existence of 'application/rdf+xml'.
mjordan commented
Fixed in commit 54a5c30. Slim is going to support content negotiation (http://help.slimframework.com/discussions/questions/65-content-types) but until then, we will simply check the 'Accept' header value string using a regex.