diff --git a/project/api/views/auth.py b/project/api/views/auth.py index 1b2c316..b8aa943 100755 --- a/project/api/views/auth.py +++ b/project/api/views/auth.py @@ -174,8 +174,8 @@ def enviar_correo(destinatario, asunto, contenido): return False -def http_referer(request): - if 'HTTP_REFERER' in request.META: +def http_referer(request, clean=False): + if 'HTTP_REFERER' in request.META and clean==False: referer = request.META['HTTP_REFERER'] else: protocol = request.scheme