mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(mobile): add additional request headers (#10588)
* add additional request headers * improve interface * move headers under advanced settings * refactor * refactor --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
a3c3619811
commit
922430da36
23 changed files with 320 additions and 48 deletions
|
|
@ -303,8 +303,7 @@ class BackupService {
|
|||
onProgress: ((bytes, totalBytes) =>
|
||||
uploadProgressCb(bytes, totalBytes)),
|
||||
);
|
||||
baseRequest.headers["x-immich-user-token"] =
|
||||
Store.get(StoreKey.accessToken);
|
||||
baseRequest.headers.addAll(ApiService.getRequestHeaders());
|
||||
baseRequest.headers["Transfer-Encoding"] = "chunked";
|
||||
|
||||
baseRequest.fields['deviceAssetId'] = entity.id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue