mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 09:42:34 +02:00
Add the config option "keep responses"
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -177,7 +177,12 @@ func (b *Broker) SaveEntry(f *proxy.Flow) {
|
||||
Path: path,
|
||||
StatusCode: status,
|
||||
RequestRaw: FormatRawRequest(f),
|
||||
ResponseRaw: FormatRawResponse(f),
|
||||
ResponseRaw: func() string {
|
||||
if config.Global.History.KeepResponses {
|
||||
return FormatRawResponse(f)
|
||||
}
|
||||
return ""
|
||||
}(),
|
||||
}
|
||||
if cb := b.onBeforeNewEntry; cb != nil {
|
||||
if !cb(pending) {
|
||||
|
||||
Reference in New Issue
Block a user