From 389fa42e9088b5349bf5b2dcefb8b9ca4c0847d3 Mon Sep 17 00:00:00 2001 From: Andrew Downes Date: Thu, 7 Sep 2017 09:56:54 -0500 Subject: [PATCH 1/2] add if-none-match tag to agent put --- src/RemoteLRS.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RemoteLRS.php b/src/RemoteLRS.php index 9f47257..d3c4273 100644 --- a/src/RemoteLRS.php +++ b/src/RemoteLRS.php @@ -1072,6 +1072,9 @@ public function saveAgentProfile($agent, $id, $content) { if (isset($options['etag'])) { $requestCfg['headers']['If-Match'] = $options['etag']; } + else { + $requestCfg['headers']['If-None-Match'] = '*'; + } } } From 2280c3a1d83bcf1124a4e2d202ac4a408386e9ce Mon Sep 17 00:00:00 2001 From: Andrew Downes Date: Tue, 12 Sep 2017 13:08:29 +0100 Subject: [PATCH 2/2] add if-none-match tag to activity put --- src/RemoteLRS.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RemoteLRS.php b/src/RemoteLRS.php index d3c4273..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'] = '*'; + } } }