1
0
bthlabs-jsonrpc/packages/bthlabs-jsonrpc-django/example/bthlabs_jsonrpc_django_example/middleware.py

7 lines
179 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from django.contrib.auth.middleware import RemoteUserMiddleware
class CustomHeaderRemoteUserMiddleware(RemoteUserMiddleware):
header = 'HTTP_X_USER'