File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 44
55require ( 'update-notifier' ) ( { pkg : require ( '../package.json' ) } ) . notify ( )
66
7+ const getContentType = require ( '@kikobeats/content-type' )
78const { URLSearchParams } = require ( 'url' )
89const clipboardy = require ( 'clipboardy' )
910const mql = require ( '@microlink/mql' )
@@ -61,7 +62,7 @@ const render = ({ response, flags }) => {
6162 const { headers, timings, requestUrl : uri , body } = response
6263 if ( ! flags . pretty ) return console . log ( body . toString ( ) )
6364
64- const contentType = headers [ 'content-type' ] . split ( ';' ) [ 0 ] . toLowerCase ( )
65+ const contentType = getContentType ( headers [ 'content-type' ] )
6566 const time = prettyMs ( timings . phases . total )
6667 const serverTiming = headers [ 'server-timing' ]
6768 const id = headers [ 'x-request-id' ]
You can’t perform that action at this time.
0 commit comments