Skip to content

Commit

Permalink
Merge pull request #163 from bc-bfenton/API-94
Browse files Browse the repository at this point in the history
API-94 - adding else case to switch back to JSON mode if useXml is false
  • Loading branch information
zvuki committed Jan 28, 2016
2 parents a7a892d + 315334c commit 2171bb3
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 2171bb3

Please sign in to comment.