aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index a2cfb48a6..2b61e6966 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1926,6 +1926,8 @@ def update_Request(req, url=None, data=None, headers={}, query={}):
origin_req_host=req.origin_req_host, unverifiable=req.unverifiable)
if hasattr(req, 'timeout'):
new_req.timeout = req.timeout
+ if req.get_method() == 'PUT':
+ new_req.get_method = lambda : 'PUT'
return new_req