Problem/Motivation
See the change record here https://www.drupal.org/node/3207439 .
At the same time I believe that this could be classified as a bug because there is no need to encode valid MIME type returned by the MIME guesser service in the first place.
Proposed resolution
Use MIME type from MIME guesser service without encoding.
Remaining tasks
- Patch - done
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file_downloader-3343581-2.patch | 633 bytes | rosk0 |
Comments
Comment #2
rosk0Comment #3
rassoni commentedDeprecated code should cover in D10 or D9 compatibility issues. Instead of removing it . we can use
\Symfony\Component\Mime\Header\UnstructuredHeader.
Comment #4
omkar_yewale commentedComment #5
omkar_yewale commentedHere is the updated patch. Please take a look.
Comment #6
ericgsmith commentedPlease read the issue description
> At the same time I believe that this could be classified as a bug because there is no need to encode valid MIME type returned by the MIME guesser service in the first place.
This is not specifically about deprecation. There is no need to do encoding here - look at what core does https://git.drupalcode.org/project/drupal/-/blob/10.1.0/core/modules/fil... I do not see a reason why this module would need to do anything different.
I believe the correct approach is from the original patch to remove the encoding. RTBC based on patch in #2
Comment #7
sjerdoThis was committed in https://git.drupalcode.org/project/file_downloader/-/commit/c7069f5e3795...