Skip to content

Commit

Permalink
Merge pull request #5 from zepgram/develop
Browse files Browse the repository at this point in the history
[v0.0.3] fix compatibility to fasterize service + M2.4.x
  • Loading branch information
Benjamin Calef authored Mar 29, 2021
2 parents 99d1c7c + eed7e0f commit 469fbb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Http/PurgeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ private function sendRequest(
$headers = [
"Authorization: {$apiToken}",
'Accept: application/json',
'Content-Type: application/json'
];

// Client options
$options[CURLOPT_CUSTOMREQUEST] = $method;

Expand All @@ -182,7 +182,7 @@ private function sendRequest(

// Execute request
$client->setOptions($options);
$client->write($method, $uri, '1.1', $headers);
$client->write($method, $uri, '1.1', $headers, $this->serializer->serialize([]));
$response = $client->read();
$client->close();

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "zepgram/module-fasterize",
"description": "Manage Fasterize cache from Magento admin and auto-trigger cache flush when it's necessary by using the Fasterize API service",
"type": "magento2-module",
"version": "0.0.2",
"version": "0.0.3",
"authors": [
{
"name": "Benjamin Calef",
"email": "[email protected]"
}
],
"require": {
"magento/framework": "^101.0.0|^102.0.0",
"magento/framework": "^101.0.0|^102.0.0|^103.0.0",
"magento/module-store": "^100.0.0|^101.0.0",
"zepgram/module-base": "^0.0.1"
"zepgram/module-base": "~0.0.1"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
]]>
</comment>
</field>
<field id="api_url" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" default="1">
<field id="api_url" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Api Url</label>
<validate>required-entry no-whitespace validate-url</validate>
<comment><![CDATA[Fasterize service api url]]></comment>
Expand Down

0 comments on commit 469fbb4

Please sign in to comment.