fix esi/ajax in piped requests

thanks to @mwisner