mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
This fix qbittorrent/qBittorrent#1949
This commit is contained in:
parent
94043e60c7
commit
f1e0ef87a4
2 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@
|
|||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#VERSION: 1.33
|
||||
#VERSION: 1.34
|
||||
|
||||
# Author:
|
||||
# Christophe DUMEZ (chris@qbittorrent.org)
|
||||
|
@ -64,7 +64,7 @@ def htmlentitydecode(s):
|
|||
|
||||
def retrieve_url(url):
|
||||
""" Return the content of the url page as a string """
|
||||
req = urllib2.Request(url, headers)
|
||||
req = urllib2.Request(url, headers = headers)
|
||||
response = urllib2.urlopen(req)
|
||||
dat = response.read()
|
||||
# Check if it is gzipped
|
||||
|
@ -89,7 +89,7 @@ def download_file(url, referer=None):
|
|||
file, path = tempfile.mkstemp()
|
||||
file = os.fdopen(file, "w")
|
||||
# Download url
|
||||
req = urllib2.Request(url, headers)
|
||||
req = urllib2.Request(url, headers = headers)
|
||||
if referer is not None:
|
||||
req.add_header('referer', referer)
|
||||
response = urllib2.urlopen(req)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue