Changeset 18038

Show
Ignore:
Timestamp:
08/22/08 16:25:49 (5 years ago)
Author:
yappo
Message:

path の頭に / ついてる

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/misc/WassrPod/wassrpod.pl

    r17954 r18038  
    3030my $timeline_map = {}; 
    3131sub timeline_map { $timeline_map }; 
    32  
    3332my $timeline_queue = []; 
    3433sub timeline_queue { $timeline_queue }; 
     34my $channels = {}; 
     35sub channels { $channels }; 
    3536 
    3637sub run { 
     
    5253    my($self, $req) = @_; 
    5354 
    54     if ($req->path eq 'http://twitter.com/statuses/friends_timeline.xml') { 
     55    if ($req->path eq '/http://twitter.com/statuses/friends_timeline.xml') { 
    5556        HTTP::Engine::Response->new( 
    5657            content_type => 'application/xml', 
    5758            body         => $self->friends_timeline($req), 
    5859        ); 
    59     } elsif ($req->path eq 'http://twitter.com/statuses/update.xml') { 
     60    } elsif ($req->path eq '/http://twitter.com/statuses/update.xml') { 
    6061        HTTP::Engine::Response->new( 
    6162            content_type => 'application/xml', 
    6263            body         => $self->update($req), 
    6364        ); 
    64     } elsif ($req->path =~ '^http://wassr.jp/.*$') { 
     65    } elsif ($req->path =~ '^/http://wassr.jp/.*$') { 
    6566        my $ua = ua($req, 'wassr.jp'); 
    6667        my $res = $ua->get($req->path);