diff --git a/src/Etsy/EtsyClient.php b/src/Etsy/EtsyClient.php index fe58539..514aaed 100755 --- a/src/Etsy/EtsyClient.php +++ b/src/Etsy/EtsyClient.php @@ -40,7 +40,7 @@ public function request($path, $params = array(), $method = 'GET', $json = true) try { $client = new Client(); $content_type = 'application/json'; - if (($method == 'POST') || ($method == 'PUT')) { + if ((($method == 'POST') || ($method == 'PUT') || ($method == 'PATCH')) && strtolower($method) !== strtolower('updateListingInventory')) { $content_type = 'application/x-www-form-urlencoded'; } $valid_methods = ['get', 'delete', 'patch', 'post', 'put'];