changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r16493: LJSUP-5774

Committer: aurbanowich
LJSUP-5774

U   branches/oauth/cgi-bin/Apache/LiveJournal.pm
Modified: branches/oauth/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- branches/oauth/cgi-bin/Apache/LiveJournal.pm	2010-04-02 04:53:11 UTC (rev 16492)
+++ branches/oauth/cgi-bin/Apache/LiveJournal.pm	2010-04-02 07:54:12 UTC (rev 16493)
@@ -21,6 +21,7 @@
                       Apache::LiveJournal::Interface::S2
                       Apache::LiveJournal::Interface::ElsewhereInfo
                       Apache::LiveJournal::PalImg
+                      Apache::LiveJournal::Interface::Restful
                       LJ::ModuleCheck
                       LJ::AccessLogSink
                       LJ::AccessLogRecord
@@ -799,7 +800,12 @@
 
             my $view = $determine_view->($user, "safevhost", $uri);
             return $view if defined $view;
-
+        } elsif ($func eq 'api') {
+            Apache::LiveJournal::Interface::Restful->load;
+            LJ::Request->handler("perl-script");
+            LJ::Request->push_handlers(PerlHandler => \&Apache::LiveJournal::Interface::Restful::handler);
+            return LJ::Request::OK;
+        
         } elsif ($func) {
             my $code = {
                 'userpics' => \&userpic_trans,
@@ -820,7 +826,7 @@
         $host ne $LJ::DOMAIN && $host =~ /\./ &&
         $host =~ /[^\d\.]/)
     {
-
+        
         my $dbr = LJ::get_db_reader();
         my $checkhost = lc($host);
         $checkhost =~ s/^www\.//i;

Tags: changelog_bot, livejournal, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments