Skip to content

Commit 3a5ba0d

Browse files
Hanisch-ITchriskacerguis
Hanisch-IT
authored andcommitted
Bugfix/#837 add http authorization (#848)
* Bugfix - Fix: format initialization without composer - Fix: Readme * Make HTTP_AUTHORIZATION possible - To hold backward compatibility HTTP_AUTHORIZATION and HTTP_AUTHANTICATION are possible
1 parent 870a288 commit 3a5ba0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ protected function _prepare_basic_auth()
20342034

20352035
// Returns NULL if the SERVER variables PHP_AUTH_USER and HTTP_AUTHENTICATION don't exist
20362036
$username = $this->input->server('PHP_AUTH_USER');
2037-
$http_auth = $this->input->server('HTTP_AUTHENTICATION');
2037+
$http_auth = $this->input->server('HTTP_AUTHENTICATION') ?: $this->input->server('HTTP_AUTHORIZATION');
20382038

20392039
$password = NULL;
20402040
if ($username !== NULL)

0 commit comments

Comments
 (0)