Skip to content

Commit 1892407

Browse files
committed
Added compression_codec param check - needed to turn off compression formats
1 parent e4a6e69 commit 1892407

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Controller/Adminhtml/FastlyCdn/Logging/UpdateEndpoint.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public function execute()
118118
['response_condition' => $condition]
119119
);
120120

121+
$params = array_filter($params);
122+
//Array filter removes empty strings, but empty compression_codec param turns off compression formats
123+
if (!isset($params['compression_codec'])){
124+
$params['compression_codec'] = "";
125+
}
121126
$endpoint = $this->api->updateLogEndpoint($clone->number, $endpointType, array_filter($params), $oldName);
122127

123128
if (!$endpoint) {

0 commit comments

Comments
 (0)