Closed Kleissner closed 4 years ago
The correct format in SHOW_FILE_PREVIEW should be copied to SHOW_FILE_VIEW and auto select format based on the content type and media type. This can be done within the function.
SHOW_FILE_PREVIEW
SHOW_FILE_VIEW
Right now they are incorrectly hard-coded in the code: https://github.com/zeropwn/intelx/blob/ea07c86d4da6c8d39b630a2283cad01bc9d2e12f/cli/intelx.py#L58-L64
Fixed in 0a0d6bc2902d1c6a84064beda0e8fe63fa035d15
The correct format in
SHOW_FILE_PREVIEW
should be copied toSHOW_FILE_VIEW
and auto select format based on the content type and media type. This can be done within the function.Right now they are incorrectly hard-coded in the code: https://github.com/zeropwn/intelx/blob/ea07c86d4da6c8d39b630a2283cad01bc9d2e12f/cli/intelx.py#L58-L64