Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
55009364
Commit
55009364
authored
Dec 12, 2018
by
juga
Browse files
scanner: change comment
parent
c2d3bb98
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/core/scanner.py
View file @
55009364
...
...
@@ -36,7 +36,11 @@ def timed_recv_from_server(session, dest, byte_range):
HTTP_GET_HEADERS
[
'Range'
]
=
byte_range
# TODO:
# - What other exceptions can this throw?
# - Do we have to read the content, or did requests already do so?
# - response.elapsed "measures the time taken between sending the first
# byte of the request and finishing parsing the headers.
# It is therefore unaffected by consuming the response content"
# If this mean that the content has arrived, elapsed could be used to
# know the time it took.
try
:
# headers are merged with the session ones, not overwritten.
session
.
get
(
dest
.
url
,
headers
=
HTTP_GET_HEADERS
,
verify
=
dest
.
verify
)
...
...
Write
Preview
Supports
Markdown
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