diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-09-06 08:16:39 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-09-06 08:16:39 +0600 |
commit | e28034c5ac4e08414ba63decae8bf7d956fa6d93 (patch) | |
tree | dc7f519b11a117ab0e150bbd04f7315c619e8753 /youtube_dl | |
parent | 12bbd32ad0993d512ef798d5a56891d82fb29d12 (diff) |
[utils] Comment cookie processing until result from travis and some more testing
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/utils.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 9c547729e..206dd56bc 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -793,14 +793,14 @@ class YoutubeDLCookieProcessor(compat_urllib_request.HTTPCookieProcessor): # https://github.com/rg3/youtube-dl/issues/6769). # In order to at least prevent crashing we will percent encode Set-Cookie # header before HTTPCookieProcessor starts processing it. - if sys.version_info < (3, 0) and response.headers: - for set_cookie_header in ('Set-Cookie', 'Set-Cookie2'): - set_cookie = response.headers.get(set_cookie_header) - if set_cookie: - set_cookie_escaped = compat_urllib_parse.quote(set_cookie, b"%/;:@&=+$,!~*'()?#[] ") - if set_cookie != set_cookie_escaped: - del response.headers[set_cookie_header] - response.headers[set_cookie_header] = set_cookie_escaped + # if sys.version_info < (3, 0) and response.headers: + # for set_cookie_header in ('Set-Cookie', 'Set-Cookie2'): + # set_cookie = response.headers.get(set_cookie_header) + # if set_cookie: + # set_cookie_escaped = compat_urllib_parse.quote(set_cookie, b"%/;:@&=+$,!~*'()?#[] ") + # if set_cookie != set_cookie_escaped: + # del response.headers[set_cookie_header] + # response.headers[set_cookie_header] = set_cookie_escaped return compat_urllib_request.HTTPCookieProcessor.http_response(self, request, response) https_request = compat_urllib_request.HTTPCookieProcessor.http_request |