From c242b112ccef37321144cb1d4a795a5d71255a15 Mon Sep 17 00:00:00 2001 From: Nakul Bharti Date: Thu, 19 Jun 2025 20:07:59 +0530 Subject: [PATCH] fixed hex dump issue (#6273) --- pkg/protocols/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/protocols/http/request.go b/pkg/protocols/http/request.go index 090de2ed6..14599f690 100644 --- a/pkg/protocols/http/request.go +++ b/pkg/protocols/http/request.go @@ -1156,7 +1156,7 @@ func dumpResponse(event *output.InternalWrappedEvent, request *Request, redirect response := string(redirectedResponse) var highlightedResult string - if responseContentType == "application/octet-stream" || ((responseContentType == "" || responseContentType == "application/x-www-form-urlencoded") && responsehighlighter.HasBinaryContent(response)) { + if (responseContentType == "application/octet-stream" || responseContentType == "application/x-www-form-urlencoded") && responsehighlighter.HasBinaryContent(response) { highlightedResult = createResponseHexDump(event, response, cliOptions.NoColor) } else { highlightedResult = responsehighlighter.Highlight(event.OperatorsResult, response, cliOptions.NoColor, false)