From f231daf4e978e4e91e659e89372ac0e28c0c6555 Mon Sep 17 00:00:00 2001 From: catvayor Date: Wed, 6 Sep 2023 18:22:20 +0200 Subject: [PATCH] favicon & MIME type --- static/favicon.ico | Bin 0 -> 5242 bytes traque.js | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 static/favicon.ico diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..0770e17b0770ba8818761ce53415b8ab467390b8 GIT binary patch literal 5242 zcmc&&OHUL*5N;z8Zyr=6=wS&8ivbfn$S$bhBfuJsAUlhM#}3HVA7G5SiO)abA29A? zb^r|?;1?({@d|iR4n{D->VeqSx4R9qL-))q47yNTJ>4~3UsqRGRWD=v=&!Dh(RYAN z9AT`AF%~4EF4jeaetb?IX6$7}f$|+?erejP{bO48GSL%VGv4Z2c2U>NRpPwJ7tkM% z8IMO}#wEy?slru!q%Tz!kD1R%-sBw?%bihTWba-@Ns-EoqVV4+6>_>b1Uhg+gNfjzO^?_`NFnse9hh?r6@~4Xm z)g|48y@TG%S>7#Ko4tRe&)|bM3=VD|b9m0_(a8%Xifs?$n$fUzF64U;ossit9&SwX zrkdCMboCbDITTFMc!rPMlD}`k_g%GL@KchTx5$>PGak+I?r@qnpGcPIw_>rj&yZYC zTZYH`)tKNvGJmG?@=%3ixG&3FgWfP$@t}RKKFNoB9q`ckvTo1BpmB_FNPT3e*WfL+ zTl-+w<>mQoZIWXi#ah>_@rUBk3z;13+uD%wv?p$uTI*9B`z+IgcnI4hI%g|r{Hsi+ zJCybXhrrp>mX>3oc#eD#kD6CxIELxGc=c1E%ZhnLg@Upt$nWK8D!pr!DMrDSYM! z;n=WaxqW?av0#3?PT-K)1!u^<7C)aAc@%b8l3=8~_doo_d?&*a+F|~2vmefgh&cPHc5+U2nq_564&b5({VA9s)ME+^WtB91G3h2!4fl#jYX{>EO^KeBaG z-!gC@KRV^Q%ys1zg*_o)B~Nk zA9>Kd`3}vUEAPH0em_v#$SYo}9P%GxnpnFRUbwfZ?@QMC%V>YPGceiYMZaAp@6S>5 z5$Tei_cAc#=$t-K`Kev6({n!l6z(m{W$1^0EF+HM{^d0PPR0t1#7B}V^@@dWDt|HIfJ@D0W)!GANhAAFU5Y6BNEM{S)*@C3C3M1oWE jpL`OeB|s$j9JO^K!I!8F68Ob>#QMZ~#rnw@^v~E|jexcz literal 0 HcmV?d00001 diff --git a/traque.js b/traque.js index 005edf2..2fa1de5 100644 --- a/traque.js +++ b/traque.js @@ -99,6 +99,10 @@ var server = http.createServer(option, function(req, res){ } if(filename.endsWith('.js')) res.writeHead(200, {'Content-Type': 'text/javascript'}); + else if(filename.endsWith('.png')) + res.writeHead(200, {'Content-Type': 'image/png'}); + else if(filename.endsWith('.ico')) + res.writeHead(200, {'Content-Type': 'image/ico'}); else res.writeHead(200, {'Content-Type': 'text/html'}); res.write(data);