Skip to content

Commit

Permalink
Fixed request/response view in proxyview
Browse files Browse the repository at this point in the history
  • Loading branch information
denandz committed Oct 5, 2020
1 parent 7fe0423 commit 7c780b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions views/proxyview.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ func (view *ProxyView) Init(app *tview.Application, replayview *ReplayView) {
id = view.Table.GetCell(row, 1).Text
if entry := view.Logger.GetEntry(id); entry != nil {
if entry.Request != nil {
fmt.Fprint(view.requestBox, string(entry.Request.Raw))

// Appending a UTF8 braille pattern blank (U+2800)
// to deal with the partial-trailing-utf8-rune logic
// in tview (textview.go)
Expand Down Expand Up @@ -344,8 +342,8 @@ func (view *ProxyView) writeRequest(r *modifier.Request) {
return
}

fmt.Fprint(view.responseBox, string(body)) //string(r.Raw))
fmt.Fprint(view.responseBox, "\u2800")
fmt.Fprint(view.requestBox, string(body))
fmt.Fprint(view.requestBox, "\u2800")
}

func (view *ProxyView) writeResponse(r *modifier.Response) {
Expand Down Expand Up @@ -375,6 +373,6 @@ func (view *ProxyView) writeResponse(r *modifier.Response) {
return
}

fmt.Fprint(view.responseBox, string(body)) //string(r.Raw))
fmt.Fprint(view.responseBox, string(body))
fmt.Fprint(view.responseBox, "\u2800")
}

0 comments on commit 7c780b3

Please sign in to comment.