Fix onHeaders error when trying to use Rook middleware
Merge pull request #38 from rstudio/bugfix/rook-compatibility

Fix onHeaders error when trying to use Rook middleware