Track original responses

This commit is contained in:
Leonid Bugaev
2015-08-11 17:37:37 +03:00
parent 8046468ea4
commit 2990fab635
9 changed files with 128 additions and 35 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ func TestEchoMiddleware(t *testing.T) {
quit := make(chan int)
// Catch traffic from one service
input := NewRAWInput(from.Listener.Addr().String(), testRawExpire)
input := NewRAWInput(from.Listener.Addr().String(), testRawExpire, true)
// And redirect to another
output := NewHTTPOutput(to.URL, &HTTPOutputConfig{Debug: true})
@@ -158,14 +158,14 @@ func TestTokenMiddleware(t *testing.T) {
quit := make(chan int)
// Catch traffic from one service
input := NewRAWInput(from, testRawExpire)
input := NewRAWInput(from, testRawExpire, true)
// And redirect to another
output := NewHTTPOutput(to, &HTTPOutputConfig{})
Plugins.Inputs = []io.Reader{input}
Plugins.Outputs = []io.Writer{output}
// Settings.middleware = "./examples/echo_modifier.sh"
Settings.middleware = "./examples/echo_modifier.sh"
// Start Gor
go Start(quit)