fix 500 ISE with HEAD requests
Merge pull request #132 from autermann/head-fix

so true. merging.