Skip to content

Commit

Permalink
set HTTP 307 Temporary Redirect as known HTTP status code
Browse files Browse the repository at this point in the history
Solve problem with current http://schemas.xmlsoap.org/wsdl/ to https redirect, which is done by HTTP 307.
  • Loading branch information
wencagh authored Aug 14, 2024
1 parent 5b50067 commit 26b2822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3268,7 +3268,7 @@ function getResponse()
$http_reason = count($arr) > 2 ? $arr[2] : '';

// see if we need to resend the request with http digest authentication
if (isset($this->incoming_headers['location']) && ($http_status == 301 || $http_status == 302)) {
if (isset($this->incoming_headers['location']) && ($http_status == 301 || $http_status == 302 || $http_status == 307)) {
$this->debug("Got $http_status $http_reason with Location: " . $this->incoming_headers['location']);
$this->setURL($this->incoming_headers['location']);
$this->tryagain = true;
Expand Down

0 comments on commit 26b2822

Please sign in to comment.