diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 12ab2e3..463d71d 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -1130,8 +1130,6 @@ public function importFile(File $file): File "/storage/buckets/{$bucketId}/files", [ 'content-type' => 'multipart/form-data', - 'X-Appwrite-Project' => $this->project, - 'X-Appwrite-Key' => $this->key, ], [ 'bucketId' => $bucketId, @@ -1153,8 +1151,6 @@ public function importFile(File $file): File [ 'content-type' => 'multipart/form-data', 'content-range' => 'bytes ' . ($file->getStart()) . '-' . ($file->getEnd() == ($file->getSize() - 1) ? $file->getSize() : $file->getEnd()) . '/' . $file->getSize(), - 'x-appwrite-project' => $this->project, - 'x-appwrite-key' => $this->key, ], [ 'bucketId' => $bucketId, diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index d4b16d9..3f4a004 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -87,8 +87,8 @@ public function __construct( $this->storage = new Storage($this->client); $this->functions = new Functions($this->client); - $this->headers['X-Appwrite-Project'] = $this->project; - $this->headers['X-Appwrite-Key'] = $this->key; + $this->headers['x-appwrite-project'] = $this->project; + $this->headers['x-appwrite-key'] = $this->key; switch ($this->source) { case static::SOURCE_API: @@ -184,8 +184,8 @@ public function report(array $resources = [], array $resourceIds = []): array 'GET', '/health/version', [ - 'X-Appwrite-Key' => '', - 'X-Appwrite-Project' => '', + 'x-appwrite-key' => '', + 'x-appwrite-project' => '', ] )['version']; } catch (\Throwable $e) {