Skip to content

Commit b2ac2f9

Browse files
DrDaveDdjw8605
andauthored
Update stashcp/__init__.py
Co-Authored-By: Derek Weitzel <djw8605@gmail.com>
1 parent 5e9847e commit b2ac2f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stashcp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def download_http(source, destination, debug, payload):
405405
# Quote the source URL, which may have weird, dangerous characters
406406
quoted_source = urllib2.quote(source)
407407
if scitoken_contents:
408-
bearer_auth = "-H \"Authorization: Bearer %s\" " % (scitoken_contents)
408+
bearer_auth = "-H \"Authorization: Bearer %s\"" % (scitoken_contents)
409409
else:
410410
bearer_auth = ""
411411
curl_command = "curl %s -L --connect-timeout 30 --speed-limit 1024 %s --fail -H \"User-Agent: %s\" %s%s%s" % (output_mode, download_output, user_agent, bearer_auth, cache, quoted_source)

0 commit comments

Comments
 (0)