Skip middleware if no accept header is set.

Fixes #2.