Skip to content

Commit

Permalink
API-94 - adding else case to switch back to JSON mode if useXml is pa…
Browse files Browse the repository at this point in the history
…ssed "false"
  • Loading branch information
bc-bfenton committed Jan 28, 2016
1 parent a7a892d commit 315334c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Bigcommerce/Api/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 315334c

Please sign in to comment.