patch to make .end(data) work
Merge pull request #12 from substack/end-data

patch to make .end(data) work