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'}) {