Skip to content

Commit f662701

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat-backup-policy-migration
2 parents e0377b4 + b5fe198 commit f662701

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/Migration/Destinations/Appwrite.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,8 +1164,6 @@ public function importFile(File $file): File
11641164
"/storage/buckets/{$bucketId}/files",
11651165
[
11661166
'content-type' => 'multipart/form-data',
1167-
'X-Appwrite-Project' => $this->project,
1168-
'X-Appwrite-Key' => $this->key,
11691167
],
11701168
[
11711169
'bucketId' => $bucketId,
@@ -1187,8 +1185,6 @@ public function importFile(File $file): File
11871185
[
11881186
'content-type' => 'multipart/form-data',
11891187
'content-range' => 'bytes ' . ($file->getStart()) . '-' . ($file->getEnd() == ($file->getSize() - 1) ? $file->getSize() : $file->getEnd()) . '/' . $file->getSize(),
1190-
'x-appwrite-project' => $this->project,
1191-
'x-appwrite-key' => $this->key,
11921188
],
11931189
[
11941190
'bucketId' => $bucketId,

src/Migration/Sources/Appwrite.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public function __construct(
8888
$this->storage = new Storage($this->client);
8989
$this->functions = new Functions($this->client);
9090

91-
$this->headers['X-Appwrite-Project'] = $this->project;
92-
$this->headers['X-Appwrite-Key'] = $this->key;
91+
$this->headers['x-appwrite-project'] = $this->project;
92+
$this->headers['x-appwrite-key'] = $this->key;
9393

9494
switch ($this->source) {
9595
case static::SOURCE_API:
@@ -187,8 +187,8 @@ public function report(array $resources = [], array $resourceIds = []): array
187187
'GET',
188188
'/health/version',
189189
[
190-
'X-Appwrite-Key' => '',
191-
'X-Appwrite-Project' => '',
190+
'x-appwrite-key' => '',
191+
'x-appwrite-project' => '',
192192
]
193193
)['version'];
194194
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)