Skip to content

Commit

Permalink
Merge branch 'main' of github.com:forensant/pakiki-core
Browse files Browse the repository at this point in the history
  • Loading branch information
pipeline committed Sep 28, 2023
2 parents 606897f + cc7a80b commit e813237
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/project/request_model_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,10 @@ func GetRequestResponseContents(w http.ResponseWriter, r *http.Request) {
for _, dpkt := range requestResponse.DataPackets {
if dpkt.Direction == "Request" && requestResponse.Request == "" {
requestResponse.Request = highlightAndEncode(dpkt.Data, shouldHighlight, maxHighlightLength, false)
requestResponse.IsUTF8 = true
} else if dpkt.Direction == "Response" && requestResponse.Response == "" {
requestResponse.Response = highlightAndEncode(dpkt.Data, shouldHighlight, maxHighlightLength, false)
requestResponse.IsUTF8 = true
}
}
}
Expand Down

0 comments on commit e813237

Please sign in to comment.