made HEAD and OPTIONS work on /resources and /resources/123