webserver: set a proper mime type for .ico files

we were serving them up as html, which surprisingly firefox was fine
with
This commit is contained in:
Vince Weaver
2016-12-16 12:33:46 -05:00
parent b42bd856eb
commit 56f0a711eb

View File

@@ -170,9 +170,10 @@
1203 IF X$="txt" THEN M$="text/plain" 1203 IF X$="txt" THEN M$="text/plain"
1204 IF X$="png" THEN M$="image/png" 1204 IF X$="png" THEN M$="image/png"
1205 IF X$="jpg" THEN M$="image/jpg" 1205 IF X$="jpg" THEN M$="image/jpg"
1206 IF N$="teapot.html" GOTO 9000 1206 IF X$="ico" THEN M$="image/x-icon"
1207 ONERR GOTO 8000 1207 IF N$="teapot.html" GOTO 9000
1208 PRINT "LOADING ";N$ 1208 ONERR GOTO 8000
1209 PRINT "LOADING ";N$
1210 PRINT CHR$(4)+"BLOAD ";N$ 1210 PRINT CHR$(4)+"BLOAD ";N$
1215 POKE 216,0: REM CANCEL ONERR 1215 POKE 216,0: REM CANCEL ONERR
1220 FS=PEEK(43616)+256*PEEK(43617): REM FILESIZE 1220 FS=PEEK(43616)+256*PEEK(43617): REM FILESIZE