aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-20 17:05:28 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-20 17:05:39 +0100
commitaa94a6d3159af8333b56d16f3ed0bc3a164a882a (patch)
tree34c838d89031442e68d941bd7f25e93098ea1ec0 /youtube_dl/utils.py
parent768df745385a283f4df3a38ee4734feec518ec87 (diff)
[aparat] Add support (Fixes #2012)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index cc391bddd..2e48f187e 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1093,3 +1093,8 @@ def remove_start(s, start):
def url_basename(url):
path = compat_urlparse.urlparse(url).path
return path.strip(u'/').split(u'/')[-1]
+
+
+class HEADRequest(compat_urllib_request.Request):
+ def get_method(self):
+ return "HEAD"