Added nil guard to @env["REQUEST_URI"] as it is not set by Pow (see https://github.com/37signals/pow/issues/81)