fix use of a nonexistant variable. $req['uri'] became $uri.