1. Michael Granger
  2. Strelka
  3. Issues
Issue #5 resolved

Content-negotiation plugin ignores custom mediatype registration

Michael Granger
repo owner created an issue

The :negotiation plugin allows you to register a custom mediatype for content negotiation via the add_content_type directive, e.g.,

class UserService < Strelka::App
    plugins :negotiation
    add_content_type :tnetstring, 'text/x-tnetstring',
        TNetstring.method( :dump )
end # class UserService

The current implementation of mediatype negotiation ignores any types registered this way entirely, and only uses the hard-coded defaults.

Comments (1)

  1. Log in to comment