Core: Use request.path over request.path_info

Cherry-Picked-From: 929c93961182c528afba25b909732103cab8415b