Message ID | 20230128165133.4402-1-daniel@braunwarth.dev |
---|---|
State | Accepted |
Headers | show |
Series | examples/client: send HTTP Cache-Control header | expand |
Hi Daniel, On 28.01.23 17:51, Daniel Braunwarth wrote: > This patch adds the Cache-Control header to the HTTP post request to > disable caching. > > Signed-off-by: Daniel Braunwarth <daniel@braunwarth.dev> > Co-developed-by: Daniel Braunwarth <daniel.braunwarth@kuka.com> > Signed-off-by: Daniel Braunwarth <daniel.braunwarth@kuka.com> > --- > examples/client/swupdate_client.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/examples/client/swupdate_client.py b/examples/client/swupdate_client.py > index bfd267b..8763283 100755 > --- a/examples/client/swupdate_client.py > +++ b/examples/client/swupdate_client.py > @@ -111,6 +111,7 @@ class SWUpdater: > return requests.post( > self.url_upload.format(self._host_name, self._port), > files={"file": swu_file}, > + headers={"Cache-Control": "no-cache"}, > timeout=timeout, > ) > > -- > 2.39.1 > Applied to -master, thanks ! Best regards, Stefano Babic
diff --git a/examples/client/swupdate_client.py b/examples/client/swupdate_client.py index bfd267b..8763283 100755 --- a/examples/client/swupdate_client.py +++ b/examples/client/swupdate_client.py @@ -111,6 +111,7 @@ class SWUpdater: return requests.post( self.url_upload.format(self._host_name, self._port), files={"file": swu_file}, + headers={"Cache-Control": "no-cache"}, timeout=timeout, )