Make path operations safe.
Minor optimization of HTTP verb check.
Remove unnecessary debug output.