Fix restoring main request when request filter returns a new one.
Correctly catch all output from response filters, too.