"fix" incomplete MIME types (#632)

e-/exhentai's original image downloads currently send
incomplete/invalid Content-Type headers, "jpg" instead
of "image/jpg" etc, since the last update.
(https://forums.e-hentai.org/index.php?showtopic=236113)

This change prepends any Content-Type value missing a
media type specification with "image/", transforming it
into a valid MIME type.

(A global solution to a local problem, but it shouldn't
 cause any issues anywhere else)
This commit is contained in:
Mike Fährmann
2020-03-03 21:21:57 +01:00
parent 72122eb9b3
commit 115fd2c6f2
3 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
# Changelog
## Unreleased
## 1.13.1 - 2020-03-01
### Additions
- [hentaihand] add extractors ([#605](https://github.com/mikf/gallery-dl/issues/605))