Skip to content

Commit 069f8d3

Browse files
Merge branch 'master' into feature/v1942
2 parents 8a018f6 + 251914e commit 069f8d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
composer.phar
33
/nbproject
44
.DS_Store
5-
.idea
5+
.idea
6+

src/Core/HttpClients/IntuitResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ private function setFaultHandler($body, $httpResponseCode, $tid){
144144
//A standard message for now.
145145
//TO DO: Wait V3 Team to provide different message for different response.
146146
$this->faultHandler->setHelpMsg("Invalid auth/bad request (got a " . $httpResponseCode . ", expected HTTP/1.1 20X or a redirect)");
147-
if($this->getResponseContentType() != null && strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_APPLICATIONXML) == 0){
147+
if($this->getResponseContentType() != null && (strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_APPLICATIONXML) == 0 ||
148+
strcasecmp($this->getResponseContentType(), CoreConstants::CONTENTTYPE_TEXTXML) == 0)){
148149
$this->faultHandler->parseResponse($body);
149150
}
150151
}else{

0 commit comments

Comments
 (0)