mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
fd2350aa4f
commit
38261b5235
@ -381,7 +381,7 @@ class Logger(object):
|
|||||||
def _get_user(self, environ):
|
def _get_user(self, environ):
|
||||||
user = None
|
user = None
|
||||||
http_auth = environ.get("HTTP_AUTHORIZATION")
|
http_auth = environ.get("HTTP_AUTHORIZATION")
|
||||||
if http_auth:
|
if http_auth and http_auth.startswith('Basic'):
|
||||||
auth = http_auth.split(" ", 1)
|
auth = http_auth.split(" ", 1)
|
||||||
if len(auth) == 2:
|
if len(auth) == 2:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user