SeasideSt / Seaside

The framework for developing sophisticated web applications in Smalltalk.
MIT License
519 stars 71 forks source link

Default favicon.ico handler #1445

Open marschall opened 1 month ago

marschall commented 1 month ago

I wanted to ask what peoples option is on adding a default favicon.ico handler, probably in Seaside-Tools-Web.

The reason for this is that

The implementation would be relatively simple


WARequestHandler << #WAFaviconHandler

handleFiltered: aRequestContext 
    aRequestContext response
        contentType: (WAMimeType main: 'image' sub: 'x-icon');
        binary;
        nextPutAll: WAToolFiles basicNew faviconIco

class >> initialize
    WADispatcher default register: self new at: 'favicon.ico'