Il giorno 23 febbraio 2012 15:53, Nala Ginrut <nalagin...@gmail.com> ha scritto:
> There's no mime support in Guile module, so I modified the mime code of my > project Ragnarok and format a patch. > It's easy to use: > (use-modules (web mime)) > (define mime (make <mime>)) > (mime:guess mime 'pdf) > ==> application/pdf > (mime:guess mime 'php) > ==> application/x-httpd-php > > Maybe useful for some guys~ > Any comments? > just recently I happened to download something and the mimetype was not textual even though the content was textual indeed (it was a .ram link hat is a url starting with rtsp://...) So what I got back was a bytevector and I had to decode it in my code; a ugly hack Personally I'd be interested in see how your stuff could be used together with http-get to download something with a weird mimetype Thanks