assign initial value to buf (#884)

Fix prettify functionality
This commit is contained in:
jl2005
2021-01-15 21:35:50 +03:00
committed by GitHub
parent a7aa5ac5b3
commit cd28444b0d
+1
View File
@@ -76,6 +76,7 @@ func (m *Middleware) copy(to io.Writer, from PluginReader) {
continue
}
buf = msg.Data
if Settings.PrettifyHTTP {
buf = prettifyHTTP(msg.Data)
}