Middleware was missing the options parameter
Merge pull request #4 from OrganicPanda/patch-1

Middleware was missing the options parameter