This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
a stream.
17
17
- Prevent hyper from emitting lots of RST_STREAM frames.
18
18
- Hyper CLI tool now correctly uses TLS for any ``https ``-schemed URL.
19
+ - Hyper CLI tool no longer attempts to decode bytes, instead writing them
20
+ straight to the terminal.
19
21
20
22
*Software Updates *
21
23
Original file line number Diff line number Diff line change @@ -223,17 +223,15 @@ def request(args):
223
223
response = conn .get_response ()
224
224
log .debug ('Response Headers:\n %s' , pformat (response .headers ))
225
225
ctype , charset = get_content_type_and_charset (response )
226
- data = response .read ().decode (charset )
227
- if 'json' in ctype :
228
- data = pformat (json .loads (data ))
226
+ data = response .read ()
229
227
return data
230
228
231
229
232
230
def main (argv = None ):
233
231
args = parse_argument (argv )
234
232
log .debug ('Commandline Argument: %s' , args )
235
233
data = request (args )
236
- write_to_stdout (data . encode ( PREFERRED_ENCODING , errors = 'replace' ) )
234
+ write_to_stdout (data )
237
235
238
236
239
237
if __name__ == '__main__' : # pragma: no cover
You can’t perform that action at this time.
0 commit comments