dataurl icon indicating copy to clipboard operation
dataurl copied to clipboard

Extra space, no name?

Open runeimp opened this issue 5 years ago • 2 comments

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.

runeimp avatar Jul 22 '20 08:07 runeimp

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 avatar Oct 08 '20 01:10 runeimp

@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.

vincent-petithory avatar Oct 09 '20 15:10 vincent-petithory