Skip to content

Commit 7bae5a1

Browse files
committed
Fix headers passing
1 parent 040f22b commit 7bae5a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/stashcp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def get_best_stashcache():
261261
logging.debug("Querying for closest cache: %s", final_url)
262262
try:
263263
# Make the request
264-
req = urllib2.Request(final_url, headers)
264+
req = urllib2.Request(final_url, headers=headers)
265265
response = urllib2.urlopen(req)
266266
if response.getcode() == 200:
267267
logging.debug("Got error code 200 from %s", cur_site)

0 commit comments

Comments
 (0)