pass request to .end() callback