rabin 7 năm trước cách đây
mục cha
commit
9c60e19484
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      core.py

+ 2 - 0
core.py

@@ -214,6 +214,8 @@ class Demeter(object):
 
 	@staticmethod
 	def checkMobile(request):
+		if 'Demeter-Mobile' in request.headers:
+			return True
 		userAgent = request.headers['User-Agent']
 		# userAgent = env.get('HTTP_USER_AGENT')