From 315334c425f4c523474ef6f92f98d5c1682a01ff Mon Sep 17 00:00:00 2001 From: Brian Fenton Date: Thu, 28 Jan 2016 11:52:50 -0800 Subject: [PATCH] API-94 - adding else case to switch back to JSON mode if useXml is passed "false" --- src/Bigcommerce/Api/Connection.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Bigcommerce/Api/Connection.php b/src/Bigcommerce/Api/Connection.php index 12fb659e..81ece79b 100644 --- a/src/Bigcommerce/Api/Connection.php +++ b/src/Bigcommerce/Api/Connection.php @@ -115,6 +115,9 @@ public function useXml($option = true) if ($option) { $this->contentType = self::MEDIA_TYPE_XML; $this->rawResponse = true; + } else { + $this->contentType = self::MEDIA_TYPE_JSON; + $this->rawResponse = false; } }