Skip to content

Commit

Permalink
if eof(stream)
Browse files Browse the repository at this point in the history
  • Loading branch information
foldfelis committed Aug 6, 2021
1 parent f9fd644 commit 05848e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gdrive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ function download_gdrive(url, localdir)
cookies=true, cookiejar=cookiejars, redirect_limit=10
) do stream
response = HTTP.startread(stream)
eof(stream) && return

header = HTTP.header(response, "Content-Disposition")
isempty(header) && return

Expand Down

0 comments on commit 05848e1

Please sign in to comment.