Hi Roberts! Sorry for not answering earlier, my brain works more slowly than usual in summer.
Thanks for your patch, but could you elaborate what exactly do you use it for, and perhaps give some usage examples we could add to the docs? I just pushed 1.0 out of the door, so new changes are very welcome for 1.1. Thanks again uriel On Sat, Jul 11, 2009 at 10:09 PM, Robert Vollmert<[email protected]> wrote: > > Hi, > > just a small change I've found useful when serving non-static images. > > Cheers > Robert > > --- a/bin/cgilib.rc Sat Jun 20 11:56:12 2009 +0200 > +++ b/bin/cgilib.rc Sat Jul 11 12:37:55 2009 +0200 > @@ -123,12 +123,15 @@ > { for(c in $co) echo $c } | sed -n 's/^ ?'$1'=//p' > } > > +fn serve_file { > + echo 'Content-Type: '$1 > + echo > + cat > + exit > +} > > fn static_file { > - echo 'Content-Type: '`{select_mime $1} > - echo > - cat $1 > - exit > + serve_file `{select_mime $1} < $1 > } > > fn select_mime { > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "werc" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/werc9?hl=en -~----------~----~----~----~------~----~------~--~---
