diff --git a/src/RemoteLRS.php b/src/RemoteLRS.php index 7227942..5a354c3 100644 --- a/src/RemoteLRS.php +++ b/src/RemoteLRS.php @@ -930,6 +930,9 @@ public function saveActivityProfile($activity, $id, $content) { if (isset($options['etag'])) { $requestCfg['headers']['If-Match'] = $options['etag']; } + else { + $requestCfg['headers']['If-None-Match'] = '*'; + } } } @@ -1093,6 +1096,9 @@ public function saveAgentProfile($agent, $id, $content) { if (isset($options['etag'])) { $requestCfg['headers']['If-Match'] = $options['etag']; } + else { + $requestCfg['headers']['If-None-Match'] = '*'; + } } }