Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
094a51dd
Commit
094a51dd
authored
Jun 01, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move setuptools to beginning of user-agent header. Fixes #598.
parent
f0a0f6f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
CHANGES.rst
CHANGES.rst
+8
-0
setuptools/package_index.py
setuptools/package_index.py
+2
-2
No files found.
CHANGES.rst
View file @
094a51dd
...
@@ -2,6 +2,14 @@
...
@@ -2,6 +2,14 @@
CHANGES
CHANGES
=======
=======
v21
.3.0
-------
*
#
598
:
Setuptools
now
lists
itself
first
in
the
User
-
Agent
for
web
requests
,
better
following
the
guidelines
in
`
RFC
7231
<
https
://
tools
.
ietf
.
org
/
html
/
rfc7231
#
section
-
5.5.3
>`
_
.
v21
.2.2
v21
.2.2
-------
-------
...
...
setuptools/package_index.py
View file @
094a51dd
...
@@ -202,8 +202,8 @@ def find_external_links(url, page):
...
@@ -202,8 +202,8 @@ def find_external_links(url, page):
if match:
if match:
yield urllib.parse.urljoin(url, htmldecode(match.group(1)))
yield urllib.parse.urljoin(url, htmldecode(match.group(1)))
user_agent = "
Python-urllib/%s setuptools
/%s" % (
user_agent = "
setuptools/%s Python-urllib
/%s" % (
sys.version[:3], require('setuptools')[0].version
require('setuptools')[0].version, sys.version[:3],
)
)
class ContentChecker(object):
class ContentChecker(object):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment