Mime type static files Kom

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Mime type static files Kom

fstephany
Hi all,

When serving static files with Kom, the Content-type is always set on
'text/html'. I've committed a new version of KomHttpServer that should
correct this bug. As i'm not familiar with Kom, can someone have a quick
look at it?
Is there any test suite for Kom?

Cheers,

Francois

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Mime type static files Kom

Pierce Ng-2
On Sat, Jul 25, 2009 at 01:24:03PM +0200, Francois Stephany wrote:
> When serving static files with Kom, the Content-type is always set on
> 'text/html'. I've committed a new version of KomHttpServer that should
> correct this bug. As i'm not familiar with Kom, can someone have a quick
> look at it?

On the 3rd-from-last line of HttpResponse class>>fromStream:
changing "aStream contentType" to "aStream mimeType" does it for me.



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside