Skip to content

Commit

Permalink
Changed upload method from put to post in accordance with the expecta…
Browse files Browse the repository at this point in the history
…tion browser side

Signed-off-by: SystemsPurge <[email protected]>
  • Loading branch information
SystemsPurge committed Nov 14, 2024
1 parent ee53b5e commit af6fa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion villas/controller/components/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _upload(self, filename):
self.t_up_token = None
with open(filename, 'rb') as f:
params["data"] = f
r = requests.put(**params)
r = requests.post(**params)
r.raise_for_status()
self.logger.info(f'Uploaded file {filename} to {url}')

Expand Down

0 comments on commit af6fa9c

Please sign in to comment.