Skip to content

Commit

Permalink
Merge pull request #90 from garemoko/agentetagnone
Browse files Browse the repository at this point in the history
Agentetagnone
  • Loading branch information
brianjmiller authored Mar 5, 2019
2 parents 5d620d4 + 2280c3a commit 9758b3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/RemoteLRS.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,9 @@ public function saveActivityProfile($activity, $id, $content) {
if (isset($options['etag'])) {
$requestCfg['headers']['If-Match'] = $options['etag'];
}
else {
$requestCfg['headers']['If-None-Match'] = '*';
}
}
}

Expand Down Expand Up @@ -1093,6 +1096,9 @@ public function saveAgentProfile($agent, $id, $content) {
if (isset($options['etag'])) {
$requestCfg['headers']['If-Match'] = $options['etag'];
}
else {
$requestCfg['headers']['If-None-Match'] = '*';
}
}
}

Expand Down

0 comments on commit 9758b3e

Please sign in to comment.