Commit 7fc85dc8 authored by jan.koester's avatar jan.koester
Browse files

favicon support

parent 0f76d589
Loading
Loading
Loading
Loading
Loading
+8 −0
Changes for src/authdb.cpp: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@
#include "gpo.h"
#include "gpo_default.h"

#include "favicon.h"

namespace authdb {

    class Client     AuthClient;
@@ -190,6 +192,12 @@ namespace authdb {
                rep.setContentType("text/css");
                rep.send(curreq,_AuthCss.data(),_AuthCss.size());
                return;
            }else if(curreq->getRequestURL().compare(0,11,"/favicon.ico")==0){
                libhttppp::HttpResponse rep;
                rep.setState(HTTP200);
                rep.setContentType("image/ico");
                rep.send(curreq,(const char*)FAVICON,FAVICON_LEN);
                return;
            }else if(_AdminBackend.end()<=sizeof(authdb::AuthHeader)){
                try{
                    WizzardEvent(curreq,tid,args);

src/favicon.h

0 → 100644
+8490 −0

File added.

Preview size limit exceeded, changes collapsed.