Skip to content

Commit bec2532

Browse files
committed
fix: fixing file endpoint being broken after merge
1 parent d254e03 commit bec2532

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Lms/Canvas/CanvasApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function apiFilePost(string $url, array $options, string $filepath, strin
199199
];
200200
$options['query'] = $endpointOptions;
201201

202-
$endpointResponse = $this->apiPost($options['postUrl'], $options, true);
202+
$endpointResponse = $this->apiPost($options['postUrl'], ['query' => $endpointOptions], true);
203203
$endpointContent = $endpointResponse->getContent();
204204

205205
// Attach the file and send it to the upload URL

0 commit comments

Comments
 (0)