dataurl
dataurl copied to clipboard
Extra space, no name?
I was just trying your dataurl command line tool and the output of encoding an HTML file was data:text/html; charset=utf-8;base64,... instead of data:text/html;charset=utf-8;base64,.... I'm guessing the tool is intending to put name=index.html; where the space is before charset. But is failing for some reason.
Any chance of this getting looked at? It's been over two months since this issue was posted and it's the only open issue in the repo. An acknowledgement that this was seen and your currently too busy to look into it would be fine.
@runeimp The space actually comes from mime.TypeByExtension() .
There is currently no behavior to add the name parameter when encoding a file. That's something that could be done easily though.