fix bugs when using the HEAD method or "Range:" header on urls which resolve to embedded actions