Skip to content
Browse files

Added Proxy support.

  • Loading branch information...
1 parent 72cfd94 commit 45c54894ab31715f651c4c0059392467a487b6de @zaf committed
Showing with 2 additions and 0 deletions.
  1. +1 −0 cli/mstranslate-cli.pl
  2. +1 −0 mstranslate.agi
View
1 cli/mstranslate-cli.pl
@@ -93,6 +93,7 @@
$ua = LWP::UserAgent->new;
$ua->agent("Mozilla/5.0 (X11; Linux; rv:8.0) Gecko/20100101");
+$ua->env_proxy;
$ua->timeout($timeout);
if ($in_lang) {
View
1 mstranslate.agi
@@ -105,6 +105,7 @@ warn "$name Text passed for language detection: $text\n" if ($debug && !$out_lan
# Translate text using MS Translator API #
my $ua = LWP::UserAgent->new;
$ua->agent("Mozilla/5.0 (X11; Linux; rv:8.0) Gecko/20100101");
+$ua->env_proxy;
$ua->timeout(5);
$text = escape($text);

0 comments on commit 45c5489

Please sign in to comment.
Something went wrong with that request. Please try again.