From 2d3219befd137c7f8117ac4c8b1428971d81ec56 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Wed, 16 Sep 2020 13:28:36 +0200 Subject: [PATCH] Fix permanent header modification after uploads (closes #79) --- ytmusicapi/mixins/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/mixins/uploads.py b/ytmusicapi/mixins/uploads.py index 90cfe8b..71a2eb7 100644 --- a/ytmusicapi/mixins/uploads.py +++ b/ytmusicapi/mixins/uploads.py @@ -220,7 +220,7 @@ class UploadsMixin: "The provided file type is not supported by YouTube Music. Supported file types are " + ', '.join(supported_filetypes)) - headers = self.headers + headers = self.headers.copy() upload_url = "https://upload.youtube.com/upload/usermusic/http?authuser=0" filesize = os.path.getsize(filepath) body = ("filename=" + ntpath.basename(filepath)).encode('utf-8')