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