Changeset 4720
- Timestamp:
- 01/16/08 23:46:43 (5 years ago)
- Location:
- lang/perl/Moxy/trunk
- Files:
-
- 2 modified
-
config.yaml (modified) (1 diff)
-
lib/Moxy/Plugin/Application.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Moxy/trunk/config.yaml
r4718 r4720 3 3 application: 4 4 host: localhost 5 port: 99995 port: 10000 6 6 storage: 7 7 module: DBM_File -
lang/perl/Moxy/trunk/lib/Moxy/Plugin/Application.pm
r3964 r4720 68 68 69 69 sub _ua { 70 my ($class, $proxy_url) = @_; 71 70 72 my $ua = LWP::UserAgent->new( 71 73 agent => "Moxy/$Moxy::VERSION", … … 73 75 max_redirects => 0, 74 76 ); 75 $ua->proxy(['http'] => 'http://localhost:9999/');77 $ua->proxy(['http'] => $proxy_url); 76 78 $ua; 77 79 } … … 85 87 $req->header('Host' => URI->new($url)->host); 86 88 $req->header('Proxy-Authorization' => "Basic @{[ encode_base64 $auth ]}"); 87 my $ua = $class->_ua ;89 my $ua = $class->_ua($base); 88 90 my $res = $ua->request($req); 89 91 if ($res->code == 302) { … … 193 195 This is web proxy mode plugin. 194 196 197 =head1 DISCLAIMER 198 199 THIS MODULE IS STILL ALPHA QUALITY 200 195 201 =head1 AUTHOR 196 202
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)