Don't crash when there are no arguments.
Support HEAD method.
Merge pull request #1 from dchest/fixes

Add HEAD method and fix crash