mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
[chore] Rename local variable, use strict comparison.
This commit is contained in:
parent
3e9d0cc1ad
commit
07d6808e4e
@ -655,13 +655,13 @@ async function basicUserLogin(request) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const auth_header = request.get('Authorization');
|
||||
if (!auth_header) {
|
||||
const authHeader = request.get('Authorization');
|
||||
if (!authHeader) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const parts = auth_header.split(' ');
|
||||
if (!parts || parts.length < 2 || parts[0].toLowerCase() != 'basic') {
|
||||
const parts = authHeader.split(' ');
|
||||
if (!parts || parts.length < 2 || parts[0].toLowerCase() !== 'basic') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user