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')