Fix for the undefined method error

Fix undefined method `request_uri' for #<URI::Generic...URL:translate.google.com> error.