diff options
author | tylercloke <tylercloke@gmail.com> | 2015-04-30 15:06:17 -0700 |
---|---|---|
committer | tylercloke <tylercloke@gmail.com> | 2015-05-04 13:18:30 -0700 |
commit | ddf2135f147eca68490829dd96c65690c27f8d04 (patch) | |
tree | 50d01383e922c208625cb5ffa8c47855ccad71c0 /ci | |
parent | c6c7329ff54851390e0e84d0b681ee8396b3f34c (diff) | |
download | chef-ddf2135f147eca68490829dd96c65690c27f8d04.tar.gz |
Implemented X-Ops-Server-API-Version in Chef requests.
This takes advantage of Chef::HTTP::Authenticator.handle_request. After the authentication_headers have been merged, it adds:
{'X-Ops-Server-API-Version' => Chef::HTTP::Authenticator::SERVER_API_VERSION}
Chef::HTTP::Authenticator::SERVER_API_VERSION should corrospond to the max version of the server the client is compatible with. We are starting at "0".
I also removed outer level lets :base_header and :req_with_body_headers from rest_spec.rb as they were never used anywhere. Another :base_header was defined in a tighter part of the spec and was only used in that scope, and :req_with_body_headers was never used anywhere.
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions