diff --git a/src/nusoap.php b/src/nusoap.php index 1eb60fb..ddd7029 100644 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -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;