From 30dee4697019389ef29458b2e3931adc976389b2 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 11 Dec 2023 01:12:30 -0500 Subject: New upstream version 1.26.4. --- gallery_dl/extractor/reddit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gallery_dl/extractor/reddit.py') diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index c0bf5b3..feb6d1f 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -423,9 +423,10 @@ class RedditAPI(): "grants/installed_client"), "device_id": "DO_NOT_TRACK_THIS_DEVICE"} + auth = util.HTTPBasicAuth(self.client_id, "") response = self.extractor.request( url, method="POST", headers=self.headers, - data=data, auth=(self.client_id, ""), fatal=False) + data=data, auth=auth, fatal=False) data = response.json() if response.status_code != 200: -- cgit v1.2.3