Skip to content

Commit

Permalink
remove example pasted from django docs 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
jombooth committed Mar 11, 2024
1 parent 217faab commit 54214d4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions label_studio/core/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,6 @@ def __call__(self, request):
return response


class SimpleMiddleware:
def __init__(self, get_response):
self.get_response = get_response
# One-time configuration and initialization.

def __call__(self, request):
# Code to be executed for each request before
# the view (and later middleware) are called.

response = self.get_response(request)

# Code to be executed for each request/response after
# the view is called.

return response


class XApiKeySupportMiddleware:
"""Middleware that adds support for the X-Api-Key header, by having its value supersede
anything that's set in the Authorization header."""
Expand Down

0 comments on commit 54214d4

Please sign in to comment.