File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1+ Fixed sync issue where non https URLs were not allowed.
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ def create_bandersnatch_config(remote):
6565 config = BandersnatchConfig ()
6666 config ["mirror" ]["master" ] = remote .url
6767 config ["mirror" ]["workers" ] = str (remote .download_concurrency )
68- config ["mirror" ]["allow_non_https" ] = "true"
6968 if not config .has_section ("plugins" ):
7069 config .add_section ("plugins" )
7170 config ["plugins" ]["enabled" ] = "blocklist_release\n "
@@ -120,7 +119,7 @@ async def run(self):
120119 if not isinstance (downloader , HttpDownloader ):
121120 raise ValueError ("Only HTTP(S) is supported for python syncing" )
122121
123- async with Master (url ) as master :
122+ async with Master (url , allow_non_https = True ) as master :
124123 # Replace the session with the remote's downloader session
125124 old_session = master .session
126125 master .session = downloader .session
You can’t perform that action at this time.
0 commit comments