We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b29585a commit f10c68aCopy full SHA for f10c68a
demo/site/user-agent.py
@@ -0,0 +1,7 @@
1
+#coding: utf-8
2
+
3
+def handler(self):
4
+ print self.environ
5
+ user_agent = self.environ.get('HTTP_USER_AGENT')
6
+ print user_agent
7
+ return '你的浏览器是:%s' % user_agent
0 commit comments