mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 13:19:09 +00:00
Get rid of deprecated method calls
This commit is contained in:
1 parent
96fa7c653f
commit
c1f7125f72
9 files changed
+28
-18
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace App\Client\Http\Modifiers;
|
||||
|
||||
use App\Client\Configuration;
|
||||
use GuzzleHttp\Psr7\Message;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use function GuzzleHttp\Psr7\str;
|
||||
use Illuminate\Support\Arr;
|
||||
@@ -29,7 +30,7 @@ class CheckBasicAuthentication
|
||||
|
||||
if (is_null($username)) {
|
||||
$proxyConnection->send(
|
||||
str(new Response(401, [
|
||||
Message::toString(new Response(401, [
|
||||
'WWW-Authenticate' => 'Basic realm=Expose',
|
||||
], 'Unauthorized'))
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user