ruby-rdf / rack-linkeddata

Rack middleware for Linked Data content negotiation.
http://rubygems.org/gems/rack-linkeddata
The Unlicense
25 stars 2 forks source link

Support for some Accept headers with subtype wildcards #8

Closed muratseyhan closed 7 years ago

muratseyhan commented 7 years ago

Rack::ContentNegotiation#find_writer_for_content_type returns nil for Accept headers with subtype wildcards, such as text/* and application/*. This leads the server to respond with a 406 Not Acceptable although it is capable of serving proper content types. I think it would make sense to match them with text/turtle and application/ld+json respectively, as they are the standard content types in LDP.