Skip to content

Commit

Permalink
Added $this to version and plugin for header (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Gustafsson authored and lusffs committed May 3, 2018
1 parent 008cd79 commit ac51e1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public function execute($url, $method, $postData)
$headers[] = "x-test-mode: true";
}

$headers[] = "x-sdk-version: ".$version;
$headers[] = "x-plugin-version: ".$plugin;

$headers[] = "x-sdk-version: " . $this->version;
$headers[] = "x-plugin-version: " . $this->plugin;
if($postData != null) {
$postData = json_encode($postData);
}
Expand Down

0 comments on commit ac51e1a

Please sign in to comment.