Proper handling for HEAD requests (closes #25)