Skip to content

Commit

Permalink
Switch to Django 2.0.13, Take 9, fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
znick committed Mar 31, 2024
1 parent 52fc68f commit 5151c46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions anytask/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json

from django.conf import settings
from django.contrib.auth import authenticate, login
from django.contrib.auth import authenticate
from django.http import HttpResponse, HttpResponseForbidden, HttpResponseBadRequest, HttpResponseNotFound
from django.shortcuts import get_object_or_404
from django.views.decorators.csrf import csrf_exempt
Expand Down Expand Up @@ -34,7 +34,6 @@ def check_auth(request, *args, **kwargs):
auth_str = request.META['HTTP_AUTHORIZATION']
auth_str_parts = auth_str.split()


if auth_str_parts[0].lower() != "basic":
return get_401_response()

Expand Down

0 comments on commit 5151c46

Please sign in to comment.