This way it can be monitorized, instead of the caller deciding when to ask for it during the whole download process. We first try to get it when the server response is received. Then we try again when the destination file has been created if the server didn't provide a valid content type.
f379cfb downloads: Add content-type property to EphyDownload
embed/ephy-download.c | 135 ++++++++++++++++++++++++------------
embed/ephy-download.h | 2 +-
lib/widgets/ephy-download-widget.c | 53 ++++++--------
3 files changed, 113 insertions(+), 77 deletions(-)
Upstream: git.gnome.org