Fixed handling of HEAD requests - they used to fail when running moxie proxy via 'java -jar ...'