ninor fix

This commit is contained in:
lxsang
2016-10-30 16:14:04 +01:00
parent 88e284e12b
commit 08a29ee87e
18 changed files with 74 additions and 26 deletions

View File

@ -27,7 +27,23 @@ void execute(int client,const char* method,dictionary rq)
void get(int client,const char* method,dictionary rq)
{
html(client);
if(rq)
{
dictionary ck = (dictionary)dvalue(rq,"cookie");
if(ck)
{
association as;
for_each_assoc(as, ck)
{
__t(client,"%s -> %s <br/>",as->key, as->value);
}
}
else
__t(client,"noo cookie");
}
else
__t(client,"no request");
}
void handler(int client, const char* method, const char* rqpth, dictionary rq)
@ -36,6 +52,10 @@ void handler(int client, const char* method, const char* rqpth, dictionary rq)
{
execute(client,method,rq);
}
else if(EQU(rqpth,"get"))
{
get(client,method,rq);
}
else
{
unknow(client);