Skip to content

Commit

Permalink
Added User Agent Header
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Jan 11, 2023
1 parent 4b0af90 commit f9cdf23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nft-maker/src/Connectors/TatumConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function getBaseUrl() {
}

private function headers(): array {
return array('Accept' => 'application/json', 'Content-Type' => 'application/json', 'x-api-key' => $this->apiKey);
return array('Accept' => 'application/json', 'Content-Type' => 'application/json', 'x-api-key' => $this->apiKey, 'User-Agent' => 'Tatum_WordPress_NftMaker/'.TATUM_VERSION);
}

public function getApiVersion() {
Expand Down
2 changes: 1 addition & 1 deletion plugins/tatum/src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Description: NFT Maker is the easiest and fastest free plugin to work with NFTs without any blockchain development experience.
* Author: Lukas Kotol
* Author URI: https://t.me/LukasKotol
* Version: 2.0.31
* Version: 2.0.32
* Text Domain: tatum
* Domain Path: /languages
* License: MIT
Expand Down
5 changes: 4 additions & 1 deletion plugins/tatum/wordpress.org/README.wporg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: nft, erc721, ethereum, celo, bsc, polygon, harmony, mint, tatum, blockchai
Requires at least: 5.5
Requires PHP: 7.0
Tested up to: 5.8.2
Stable tag: 2.0.31
Stable tag: 2.0.32
License: MIT
License URI: https://opensource.org/licenses/MIT

Expand Down Expand Up @@ -211,6 +211,9 @@ Fixed activator lazy nft testnet field & strip HTML and special chars from IPFS
= 2.0.31 =
Removed open sea link and changed eth testnet link to sepolia

= 2.0.32 =
Added user agent header

== Upgrade Notice ==

= 1.0.0 =
Expand Down

0 comments on commit f9cdf23

Please sign in to comment.