Skip to content

Commit

Permalink
fix: support download abusive file
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Feb 24, 2021
1 parent 4e1d5fc commit b5d51ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/drive.gd.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ module.exports = ({ request, cache, getConfig, querystring, base64, saveDrive, g

let data = options.data || {}

let api = `https://www.googleapis.com/drive/v3/files/${path}?alt=media`
let api = `https://www.googleapis.com/drive/v3/files/${path}?alt=media&acknowledgeAbuse=true`

return {
id,
Expand Down Expand Up @@ -745,7 +745,7 @@ module.exports = ({ request, cache, getConfig, querystring, base64, saveDrive, g

let { path, credentials } = predata

let url = `https://www.googleapis.com/drive/v3/files/${path}?alt=media`
let url = `https://www.googleapis.com/drive/v3/files/${path}?alt=media&acknowledgeAbuse=true`

let readstream = request({
url,
Expand Down

0 comments on commit b5d51ec

Please sign in to comment.