Skip to content

Commit 9758b3e

Browse files
authored
Merge pull request #90 from garemoko/agentetagnone
Agentetagnone
2 parents 5d620d4 + 2280c3a commit 9758b3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/RemoteLRS.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,9 @@ public function saveActivityProfile($activity, $id, $content) {
930930
if (isset($options['etag'])) {
931931
$requestCfg['headers']['If-Match'] = $options['etag'];
932932
}
933+
else {
934+
$requestCfg['headers']['If-None-Match'] = '*';
935+
}
933936
}
934937
}
935938

@@ -1093,6 +1096,9 @@ public function saveAgentProfile($agent, $id, $content) {
10931096
if (isset($options['etag'])) {
10941097
$requestCfg['headers']['If-Match'] = $options['etag'];
10951098
}
1099+
else {
1100+
$requestCfg['headers']['If-None-Match'] = '*';
1101+
}
10961102
}
10971103
}
10981104

0 commit comments

Comments
 (0)