Skip to content

Commit

Permalink
snapshot: send accept header to prevent sending application/json by d…
Browse files Browse the repository at this point in the history
…efault
  • Loading branch information
koush committed Nov 9, 2023
1 parent ba1ecd5 commit 99d2f43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/snapshot/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/snapshot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/snapshot",
"version": "0.0.65",
"version": "0.0.66",
"description": "Snapshot Plugin for Scrypted",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
Expand Down
3 changes: 3 additions & 0 deletions plugins/snapshot/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ class SnapshotMixin extends SettingsMixinDeviceBase<Camera> implements Camera {
responseType: 'arraybuffer',
url: this.storageSettings.values.snapshotUrl,
timeout: 60000,
headers: {
'Accept': 'image/*',
}
});

return response.data;
Expand Down

0 comments on commit 99d2f43

Please sign in to comment.