Closed CamilleScholtz closed 4 years ago
URL in question: https://dl.google.com/go/go1.11beta1.src.tar.gz
Fails with both cmd/grab and using grab as a library, wget can correctly determine the filename.
cmd/grab
grab output:
./grab https://dl.google.com/go/go1.13beta1.src.tar.gz Downloading 1 files... Error downloading https://dl.google.com/go/go1.13beta1.src.tar.gz: no filename could be determined Finished 0 successful, 1 failed, 0 incomplete.
@onodera-punpun This is because dl.google.com is returning Content-Disposition header without any filename directive!
dl.google.com
Content-Disposition
filename
URL in question: https://dl.google.com/go/go1.11beta1.src.tar.gz
Fails with both
cmd/grab
and using grab as a library, wget can correctly determine the filename.grab output: