title: Accept header in ruby rest-client I believe causes return of an error code 404
body: <p>I am passing the following request to ruby rest-client gem;</p>
  
  <pre><code>RestClient::Request.execute(method: :get,
                              url: Config['site_url'] + path,
                              verify_ssl: OpenSSL::SSL::VERIFY_NONE,
                              headers: { organisation: 'WEB',
                                         accept: 'application/vnd.xyz.v2+json' })
  </code></pre>
  
  <p>Gem Versions
  ruby version 2.3.3
  rest-client 2.0.2</p>
  
  <p>I have passed the same request to Postman and I get the response I expected.</p>
  
  <p>I also have a v1 of the API that accepts just ":json" and this also responds as expected so my feeling is that it is something around the </p>
  
  <pre><code>accept: 'application/vnd.xyz.v2+json'
  </code></pre>
  
  <p>That is causing the problem but I'm not sure what exactly. As my feeling is if there was something wrong with the response then postman would also complain.</p>
  
  <p>The documentation here <a href="https://github.com/rest-client/rest-client" rel="nofollow noreferrer">https://github.com/rest-client/rest-client</a>
  default request headers: rest-client sets </p>
  
  <pre><code>accept:*/*
  </code></pre>
  
  <p>Just in case I passed <em>/</em> (although I am assuming * means enter what you need) but this returned the v1 response.</p>
  
  <p>The method, url and verify_ssl are working in multiple other requests. So I don't think there is any issue there either.</p>
  
  <p>Anyone, have any suggestions? Thx</p>