Skip to content

Commit 9f4c7c1

Browse files
committed
fixed hex dump issue
1 parent 6cc9c2e commit 9f4c7c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/protocols/http/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ func dumpResponse(event *output.InternalWrappedEvent, request *Request, redirect
11561156
response := string(redirectedResponse)
11571157

11581158
var highlightedResult string
1159-
if responseContentType == "application/octet-stream" || ((responseContentType == "" || responseContentType == "application/x-www-form-urlencoded") && responsehighlighter.HasBinaryContent(response)) {
1159+
if (responseContentType == "application/octet-stream" || responseContentType == "application/x-www-form-urlencoded") && responsehighlighter.HasBinaryContent(response) {
11601160
highlightedResult = createResponseHexDump(event, response, cliOptions.NoColor)
11611161
} else {
11621162
highlightedResult = responsehighlighter.Highlight(event.OperatorsResult, response, cliOptions.NoColor, false)

0 commit comments

Comments
 (0)