Skip to content

Commit

Permalink
[networking] Request: Update extensions
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly committed Mar 15, 2024
1 parent cf5e751 commit 042d1f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt_dlp/networking/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,10 @@ def headers(self, new_headers: Mapping):
else:
raise TypeError('headers must be a mapping')

def update(self, url=None, data=None, headers=None, query=None):
def update(self, url=None, data=None, headers=None, query=None, extensions=None):
self.data = data if data is not None else self.data
self.headers.update(headers or {})
self.extensions.update(extensions or {})
self.url = update_url_query(url or self.url, query or {})

def copy(self):
Expand Down

0 comments on commit 042d1f5

Please sign in to comment.