pull request: Add support for HEAD requests

as discussed in issue #18