Message374438
The standard itself says that it only applies to content served over http; if the content is retrieved by ftp or from a file system, then you should trust that. I don't notice that in the code you pointed to.
So maybe filetype is the right answer if the data isn't coming over the network? For whatwg demonstration code, it is reasonable to assume that, but in python -- at a minimum, you should document the assumption prominently in the docs and docstring. |
|
Date |
User |
Action |
Args |
2020-07-27 23:15:18 | Jim.Jewett | set | recipients:
+ Jim.Jewett, gvanrossum, berker.peksag, serhiy.storchaka, corona10, xtreak |
2020-07-27 23:15:18 | Jim.Jewett | set | messageid: <1595891718.03.0.525713300999.issue40841@roundup.psfhosted.org> |
2020-07-27 23:15:18 | Jim.Jewett | link | issue40841 messages |
2020-07-27 23:15:17 | Jim.Jewett | create | |
|