[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441)
From: |
DalmeGNU |
Subject: |
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441) |
Date: |
Thu, 22 Aug 2019 21:00:39 +0000 |
DalmeGNU commented on a discussion:
https://gitlab.com/gnuwget/wget2/merge_requests/441#note_207043224
```
$ ./wget2 --filter-mime-type=* dalme.net/algebra/test
[0] Checking 'http://dalme.net/algebra/test' ...
HTTP response 301 Moved Permanently [http://dalme.net/algebra/test]
Adding URL: https://dalme.net/algebra/test
[0] Checking 'https://dalme.net/algebra/test' ...
HTTP response 200 OK [https://dalme.net/algebra/test]
```
The file doesn't get downloaded. resp->content_type is NULL in this case. I
don't really know if this is common or maybe it's a server fault (but it
happens always with that file). Anyway, it provoked segmentation fault. I fixed
it within the --no-if-modified-since commit (there if there is no MIME type it
just don't downloads the file) but I want wget2 to let the user decide what to
do, or, we should decide what to do in those cases.
But to be honest I have to say I don't really how often this happens.
PS: Yes, `--missing-mime-type` looks a better name
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/441#note_207043224
You're receiving this email because of your account on gitlab.com.
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441), Tim Rühsen, 2019/08/23
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441), Tim Rühsen, 2019/08/23
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441), Tim Rühsen, 2019/08/23
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441), DalmeGNU, 2019/08/23
Re: [Wget-dev] wget2 | Add new option --unknown-mime-type (!441), DalmeGNU, 2019/08/23
Re: [Wget-dev] wget2 | Add new option --unknown-mime-type (!441), Tim Rühsen, 2019/08/23