add set_user_data to fakemobileclient.js
This commit is contained in:
parent
d4f8675668
commit
5bb4560c82
3 changed files with 7 additions and 2 deletions
|
@ -6,5 +6,5 @@ class MobileclientMiddleware:
|
|||
self.get_response = get_response
|
||||
|
||||
def __call__(self, request):
|
||||
request.mobileclient = 'c3navclient' in request.META['HTTP_USER_AGENT']
|
||||
request.mobileclient = 'c3navclient' in request.META['HTTP_USER_AGENT'] or 'fakemobileclient' in request.GET
|
||||
return self.get_response(request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue