Hello, I have attached a patch that fixes the static content serving in Swazoo. The following code demonstrates the case:
| site | site := Swazoo.SwazooSite newNamed: 'hello'. site host: '*' ip: '*' port: 8888. site addResource: (Swazoo.FileResource uriPattern: '/' filePath: 'index.html'). site start. There were two issues. In Swazoo.FileResponse >> printEntityOn: aStream we have got MessageNotUnderstood exceptions on 1. rs lineEndTransparent 2. rs nextAvailable: 2000 ...and no data were written on the stream. A dummy #lineEndTransparent message was inserted into a Stream class in swazoo-httpd/Extensions.st, but in Sport a SpFileStream (that is used in Swazoo) is derived from Object, not from a Stream. And then, a SpFileStream did not provided a #nextAvailable: message, I have added it. Dmitry _______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
