aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorAleksandar Topuzovic <aleksandar.topuzovic@gmail.com>2016-05-13 15:52:52 +0100
committerSergey M․ <dstftw@gmail.com>2016-07-03 02:20:41 +0700
commit6b03e1e25d05ddb3dbd577b045e44fa9eb05bdc0 (patch)
tree3cb2caf173d8ba0f8ddd91bd82a5d5ae8da7dcc6 /youtube_dl/utils.py
parent712b0b5b7016202885a51c2a8af79921bf0fce2b (diff)
[HRTi] Implement extractor for Croatian Radiotelevision
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