mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 05:09:11 +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\Server\Http\Controllers\Admin;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use GuzzleHttp\Psr7\Message;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use function GuzzleHttp\Psr7\str;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -24,7 +25,7 @@ abstract class AdminController extends Controller
|
||||
|
||||
return true;
|
||||
} catch (\Throwable $e) {
|
||||
$httpConnection->send(str(new Response(401, [
|
||||
$httpConnection->send(Message::toString(new Response(401, [
|
||||
'WWW-Authenticate' => 'Basic realm="Expose"',
|
||||
])));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user