Plugin Directory

Changeset 3174505


Ignore:
Timestamp:
10/23/2024 05:16:23 PM (17 months ago)
Author:
Beherit
Message:

Bugfix in JSON requests to the ejabberd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xmpp-statistics/trunk/includes/functions.php

    r3043113 r3174505  
    1313    $response = wp_remote_post(get_option('xmpp_stats_rest_url').'/'.$command, array(
    1414        'headers' => array(
    15             'Authorization' => 'Basic '.base64_encode(get_option('xmpp_stats_login').':'.get_option('xmpp_stats_password'))
     15            'Authorization' => 'Basic '.base64_encode(get_option('xmpp_stats_login').':'.get_option('xmpp_stats_password')),
     16            'Content-Type' => 'application/json'
    1617        ),
    17         'body' => json_encode($arguments),
     18        'body' => json_encode($arguments, JSON_FORCE_OBJECT),
    1819        'redirection' => 0,
    1920        'httpversion' => '1.1'
Note: See TracChangeset for help on using the changeset viewer.