fixed getRequestUri method