Changeset 18691
- Timestamp:
- 09/03/08 01:35:09 (5 years ago)
- Files:
-
- 1 modified
-
lang/perl/misc/WassrPod/wassrpod.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/misc/WassrPod/wassrpod.pl
r18682 r18691 53 53 my($self, $req) = @_; 54 54 55 if ($req->path eq '/http://twitter.com/statuses/friends_timeline.xml') { 55 (my $path = $req->path) =~ s!^//!/http://!; # work around, "HTTP::Engine does not support proxy server" 56 57 if ($path eq '/http://twitter.com/statuses/friends_timeline.xml') { 56 58 HTTP::Engine::Response->new( 57 59 content_type => 'application/xml', 58 60 body => $self->friends_timeline($req), 59 61 ); 60 } elsif ($ req->path eq '/http://twitter.com/statuses/update.xml') {62 } elsif ($path eq '/http://twitter.com/statuses/update.xml') { 61 63 HTTP::Engine::Response->new( 62 64 content_type => 'application/xml', 63 65 body => $self->update($req), 64 66 ); 65 } elsif ($ req->path =~ '^/http://wassr.jp/.*$') {67 } elsif ($path =~ '^/http://wassr.jp/.*$') { 66 68 my $ua = ua($req, 'wassr.jp'); 67 69 my $res = $ua->get($req->path); … … 71 73 $heres; 72 74 } else { 73 warn "INVALID PATH: " . $ req->path;75 warn "INVALID PATH: " . $path; 74 76 HTTP::Engine::Response->new( status => 404, body => 'not found' ); 75 77 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)