summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-10-20 21:16:46 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-10-20 21:16:46 +0200
commit98b3bbf8a2ddb1500a2b99bb9bae487cb99824db (patch)
treed4456ca51ae69812c212f8d14acbb8a906a65528
parentMerge pull request #2083 from GammaC0de/patch-6 (diff)
downloadpyload-98b3bbf8a2ddb1500a2b99bb9bae487cb99824db.tar.xz
Update Hoster.py
-rw-r--r--module/plugins/internal/Hoster.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index c247fa5e3..6b4b0030a 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -5,6 +5,7 @@ from __future__ import with_statement
import os
import re
+from module.network.HTTPRequest import BadHeader
from module.plugins.internal.Base import Base, create_getInfo, parse_fileInfo
from module.plugins.internal.Plugin import Fail, Retry
from module.plugins.internal.utils import encode, exists, fixurl, fs_join, parse_name
@@ -13,7 +14,7 @@ from module.plugins.internal.utils import encode, exists, fixurl, fs_join, parse
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.42"
+ __version__ = "0.43"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -222,6 +223,10 @@ class Hoster(Base):
cookies=cookies, chunks=chunks, resume=resume,
progressNotify=self.pyfile.setProgress,
disposition=disposition)
+
+ except BadHeader, e:
+ self.req.code = e.code
+
finally:
self.pyfile.size = self.req.size