[livejournal] r22604: LJSUP-13199: Ability to use JSON RPC fro...
Committer: sbelyaev
LJSUP-13199: Ability to use JSON RPC from l-statU trunk/cgi-bin/LJ/JSON/RPC.pm
Modified: trunk/cgi-bin/LJ/JSON/RPC.pm
===================================================================
--- trunk/cgi-bin/LJ/JSON/RPC.pm 2012-08-08 12:59:46 UTC (rev 22603)
+++ trunk/cgi-bin/LJ/JSON/RPC.pm 2012-08-08 13:22:27 UTC (rev 22604)
@@ -106,7 +106,7 @@
$resp_data = $item->response($result);
if ($self->{'callback'} && !$resp_data->{'error'}) {
- $headers = __get_headers($result);
+ $headers = $self->__get_headers($result);
}
}
@@ -119,6 +119,7 @@
sub __get_headers {
my ($self, $result) = @_;
+
if (LJ::Request->hostname eq 'stat.' . $LJ::DOMAIN) {
if ($result->{'properties'}) {
my $properties = $result->{'properties'};
