We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8122c82 commit fd8bf1cCopy full SHA for fd8bf1c
application/libraries/REST_Controller.php
@@ -1904,12 +1904,8 @@ protected function _prepare_digest_auth()
1904
1905
// We need to test which server authentication variable to use,
1906
// because the PHP ISAPI module in IIS acts different from CGI
1907
- $digest_string = '';
1908
- if ($this->input->server('PHP_AUTH_DIGEST'))
1909
- {
1910
- $digest_string = $this->input->server('PHP_AUTH_DIGEST');
1911
- }
1912
- elseif ($this->input->server('HTTP_AUTHORIZATION'))
+ $digest_string = $this->input->server('PHP_AUTH_DIGEST');
+ if ($digest_string === NULL)
1913
{
1914
$digest_string = $this->input->server('HTTP_AUTHORIZATION');
1915
}
0 commit comments