Skip to content

Commit

Permalink
tests: fix Accept-Encoding headers in stream_json
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Sep 15, 2021
1 parent de5b27b commit aa284d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_stream_json.py
@@ -1,5 +1,8 @@
import unittest

# noinspection PyUnresolvedReferences
from requests.utils import DEFAULT_ACCEPT_ENCODING

from streamlink import Streamlink
from streamlink.stream import AkamaiHDStream
from streamlink.stream import HDSStream
Expand Down Expand Up @@ -31,7 +34,7 @@ def test_http_stream(self):
"headers": {
"User-Agent": "Test",
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": DEFAULT_ACCEPT_ENCODING,
"Connection": "keep-alive",
}},
stream.__json__()
Expand All @@ -49,7 +52,7 @@ def test_hls_stream(self):
"headers": {
"User-Agent": "Test",
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": DEFAULT_ACCEPT_ENCODING,
"Connection": "keep-alive",
}
},
Expand All @@ -64,7 +67,7 @@ def test_hls_stream(self):
"headers": {
"User-Agent": "Test",
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": DEFAULT_ACCEPT_ENCODING,
"Connection": "keep-alive",
},
"master": master
Expand Down

0 comments on commit aa284d7

Please sign in to comment.