rspec_api_documentation icon indicating copy to clipboard operation
rspec_api_documentation copied to clipboard

Unable to filter headers inside doc groups

Open prikha opened this issue 8 years ago • 0 comments

Surprisingly it(curl_headers_to_filter option) does not work inside doc groups.

config.curl_headers_to_filter = %w(Host Cookie If-Modified-Since If-None-Match)

Generates curl section Host and Cookie headers:

config.define_group(:public) do |public|
    ...
    public.curl_headers_to_filter = %w(Host Cookie If-Modified-Since If-None-Match)
    public.response_headers_to_include = []
    public.request_headers_to_include = %w(Authorization)
    public.filter = :public
  end

prikha avatar Aug 22 '17 14:08 prikha