madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23198: LJSUP-14070: New domain fror request ove...

Committer: sbelyaev
LJSUP-14070: New domain fror request over CDN to JSONRPC
U   trunk/cgi-bin/LJ/JSON/RPC.pm
Modified: trunk/cgi-bin/LJ/JSON/RPC.pm
===================================================================
--- trunk/cgi-bin/LJ/JSON/RPC.pm	2012-10-25 11:54:53 UTC (rev 23197)
+++ trunk/cgi-bin/LJ/JSON/RPC.pm	2012-10-25 12:49:19 UTC (rev 23198)
@@ -121,7 +121,7 @@
 sub __get_headers {
     my ($self, $result) = @_;
 
-    if (LJ::Request->hostname eq 'stat.' . $LJ::DOMAIN) {
+    if (LJ::API::RpcAuth::is_stat_domain( LJ::Request->hostname ) ) {
         if ($result->{'properties'}) {
             my $properties = $result->{'properties'};
             if ($properties->{'cache-time'}) {

Tags: livejournal, madeon, pm, sbelyaev
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