[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: |
Tim Rühsen |
Subject: |
Re: [Wget-dev] wget2 | WIP: Add new option --unknown-mime-type (!441) |
Date: |
Fri, 23 Aug 2019 10:06:20 +0000 |
Tim Rühsen started a new discussion on src/wget.c:
https://gitlab.com/gnuwget/wget2/merge_requests/441#note_207273118
> } else if (config.chunk_size)
> job->done = 0; // do not remove this job from queue yet
>
> - // by default if we don't know the content type we don't download the
> file
> - if (config.mime_types && resp->content_type)
> - job->done = check_mime_list(config.mime_types,
> resp->content_type) ? 0 : 1;
> - else if (config.timestamping && !config.if_modified_since &&
> !config.chunk_size && !config.mime_types) {
> + //If the content-type header does not exist we assume file to be
> 'application/octet-stream'
> + if (config.mime_types)
> + job->done = check_mime_list(config.mime_types,
> (resp->content_type) ? resp->content_type : "application/octet-stream") ? 0 :
> 1;
`(resp->content_type)`: brackets not needed
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/441#note_207273118
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 <=
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
Re: [Wget-dev] wget2 | Add new option --unknown-mime-type (!441), Tim Rühsen, 2019/08/23
Re: [Wget-dev] wget2 | Add new option --unknown-mime-type (!441), Tim Rühsen, 2019/08/23