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

7 lines
179 B
Python

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