Skip to content

Commit

Permalink
Fix mimeType double urlencode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
masbug authored Oct 2, 2023
1 parent a66d22e commit 549c367
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/GoogleDriveAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,6 @@ protected function getDownloadUrl($file)
} else {
$mime = $mimeMap['default'];
}
$mime = rawurlencode($mime);

$params = $this->applyDefaultParams(['mimeType' => $mime], 'files.get');
return 'https://www.googleapis.com/drive/v3/files/'.$file->getId().'/export?'.http_build_query($params);
Expand Down

0 comments on commit 549c367

Please sign in to comment.