From 2280c3a1d83bcf1124a4e2d202ac4a408386e9ce Mon Sep 17 00:00:00 2001 From: Andrew Downes Date: Tue, 12 Sep 2017 13:08:29 +0100 Subject: [PATCH] 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'] = '*'; + } } }