diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-12-29 18:00:24 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-12-29 18:00:24 -0800 |
commit | ecad8fee4a946b337e60a4274de2b2c872c9e81b (patch) | |
tree | bbf7fc8b3feae42007f7b9d7fe53648d315c410a /lib/chef_zero/endpoints/not_found_endpoint.rb | |
parent | a8206d6c6f03de1fde15c49f6fe9ddb1d0071b7a (diff) | |
download | chef-zero-ecad8fee4a946b337e60a4274de2b2c872c9e81b.tar.gz |
Apply Chefstyle
Autocorrect with the latest chefstyle
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef_zero/endpoints/not_found_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/not_found_endpoint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/not_found_endpoint.rb b/lib/chef_zero/endpoints/not_found_endpoint.rb index 1c18f8b..160d4a2 100644 --- a/lib/chef_zero/endpoints/not_found_endpoint.rb +++ b/lib/chef_zero/endpoints/not_found_endpoint.rb @@ -4,7 +4,7 @@ module ChefZero module Endpoints class NotFoundEndpoint def call(request) - [404, { "Content-Type" => "application/json" }, FFI_Yajl::Encoder.encode({ "error" => ["Object not found: #{request.env['REQUEST_PATH']}"] }, pretty: true)] + [404, { "Content-Type" => "application/json" }, FFI_Yajl::Encoder.encode({ "error" => ["Object not found: #{request.env["REQUEST_PATH"]}"] }, pretty: true)] end end end |