Changeset 117 in Main for trunk/Server/server.c


Ignore:
Timestamp:
Sep 21, 2024, 5:47:51 PM (8 weeks ago)
Author:
Nishi
Message:

logfile works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r116 r117  
    457457
    458458                int i;
    459                 for(i = 0; req.headers[i] != NULL; i += 2){
    460                         if(cm_strcaseequ(req.headers[i], "User-Agent")){
     459                for(i = 0; req.headers[i] != NULL; i += 2) {
     460                        if(cm_strcaseequ(req.headers[i], "User-Agent")) {
    461461                                free(useragent);
    462462                                useragent = cm_strdup(req.headers[i + 1]);
Note: See TracChangeset for help on using the changeset viewer.