Skip to content

Commit 389fa42

Browse files
committed
add if-none-match tag to agent put
1 parent 04ae0c9 commit 389fa42

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/RemoteLRS.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,9 @@ public function saveAgentProfile($agent, $id, $content) {
10721072
if (isset($options['etag'])) {
10731073
$requestCfg['headers']['If-Match'] = $options['etag'];
10741074
}
1075+
else {
1076+
$requestCfg['headers']['If-None-Match'] = '*';
1077+
}
10751078
}
10761079
}
10771080

0 commit comments

Comments
 (0)