From 16307c844c1463c1ff5b3822abf51bb37bbcf01a Mon Sep 17 00:00:00 2001 From: Sammitch Date: Mon, 19 Oct 2015 13:32:17 -0700 Subject: [PATCH] Sign only path portion of URL Chef partial-search's combination of GET and POST params previously caused siging to fail. `$parts['path']` should reliably contain only the endpoint path. --- src/Jenssegers/Chef/Chef.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jenssegers/Chef/Chef.php b/src/Jenssegers/Chef/Chef.php index c27ac0d..aa0043c 100644 --- a/src/Jenssegers/Chef/Chef.php +++ b/src/Jenssegers/Chef/Chef.php @@ -143,7 +143,7 @@ function api($endpoint, $method = 'GET', $data = FALSE) // sign the request - $this->sign($endpoint, $method, $data, $header); + $this->sign($parts['path'], $method, $data, $header); // initiate curl $ch = curl_init();