Skip to content

Commit 2750fa0

Browse files
committed
useragent
1 parent a406f96 commit 2750fa0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

qiniu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
'''
88

99
# -*- coding: utf-8 -*-
10-
__version__ = '6.1.4'
10+
__version__ = '6.1.6'

qiniu/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@
88
UP_HOST = "up.qiniu.com"
99

1010
from . import __version__
11-
USER_AGENT = "qiniu python-sdk v%s" % __version__
11+
import platform
12+
13+
sys_info = "%s/%s" % (platform.system(), platform.machine())
14+
py_ver = platform.python_version()
15+
16+
USER_AGENT = "QiniuPython/%s (%s) Python/%s" % (__version__, sys_info, py_ver)

0 commit comments

Comments
 (0)